Second time around and the object "T" isn't found...

Gordon Watts (gwatts@fnal.gov)
Sun, 19 Oct 1997 21:12:16 -0500


Hi,
I've got a macro file I can only execute once in ROOT... that is, I need
to exit and enter root to get it to run correctly the second time.
Basically, I open a file and get a handle on a branch of a tree. The second
time through it bombs on the T.GetBranch (no such symbol)...

{
TFile f("output.root");
TTree *R = (TTree *) f.Get("T");
TBranch *b = T.GetBranch("event");
}

Cheers,
Gordon.

P.S. Sorry for sending so many emails. I am, as far as I know, the only
person doing this in my area of Fermi (on NT). I can go away if enough of
you ask!