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

From: Gordon Watts (Brown University) (gwatts@fnal.gov)
Date: Mon Oct 20 1997 - 04:12:16 MEST


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!



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