Access to global TTrees

From: Norbert Danneberg (Norbert.Danneberg@psi.ch)
Date: Fri Jun 05 1998 - 17:05:51 MEST


HI ,
how can I get access from within a macro function to a TTree which was
loaded interactively from an hbook converted file?

root[21] Int_t BGOList[3] = {1,2,3};
root[22]  f1 = new TFile("MyFile.root");
root[23] .L GainHV.C;

root [24] f1.ls();
TFile**         bt416_05_eve.root
 TFile*         bt416_05_eve.root
  KEY: TTree    h10;1   event
root [25] GainHV(&BGOList, 3)

Error: No symbol h10.Print() in current scope
FILE:/data/norbert/proc/root/macros/
GainHV.C LINE:62
*** Interpreter error recovered ***

Thanks,

Norbert

--
-------------------------------------
Norbert Danneberg

Institut f"ur Teilchenphysik
Eidg. Techn. Hochschule Z"urich
WLGA/E27
CH-5232 Villigen PSI

Phone: 0041-56-310-3284
Fax  : 0041-56-310-4362
email: Norbert.Danneberg@psi.ch
-------------------------------------



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:33 MET