[ROOT] Creating tree in a given file...

From: Thomas Bretz (tbretz@astro.uni-wuerzburg.de)
Date: Wed Oct 16 2002 - 12:04:08 MEST


Hi all,

I'm creating several files (TFile("name", "create")) and afterwards 
several Trees (new TTree("MyTreeName", "MyTitle", 99)).

What is the correct procedure the get the trees in the file I want. At 
the moment I'm doing

TDirectory *save = gDirectory;
thefile->cd();
new TTree("MyTreeName", "title", 99);
gDirectory = save;

Best regards,
Thomas.



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:14 MET