Hi Thomas, This is an appropriate way of creating a Tree in a specific file. Cheers, Philippe -----Original Message----- From: owner-roottalk@pcroot.cern.ch [mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Thomas Bretz Sent: Thursday, October 17, 2002 10:42 AM To: roottalk@pcroot.cern.ch Subject: [ROOT] Creating a tree in a file 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