[ROOT] Creating a tree in a file

From: Thomas Bretz (tbretz@astro.uni-wuerzburg.de)
Date: Thu Oct 17 2002 - 10:41:57 MEST


Hi all,

I'm creating several files first and afterwards the correspoding trees. 
How is the correct syntax to create a tree in a file? (like 
TTree::Branch, there is not TFile::Tree)

Actually I'm doing:

TDirectory *save = gDirectory;
file->cd();
new TTree(...)
gDirectory=save;

Thanks,
Thomas.



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