Hi. I've got a TTree which I wish to associate with no directory. This works fine according to the documentation for TTree: tree.SetDirectory(0); However, this fails if I wish to create a TBranchClones branch for the tree with split level = 1because TBranchClones looks for a file associated with the directory. TTree* tree = new TTree("myName","My title"); tree->SetDirectory(0); TBranch* branch = tree->Branch("someName",&someClonesArray,64000,1); This goes through TREE_Tree.cxx line 599 to TREE_BranchClones.cxx line 79 which calls: 79 TFile *bfile = gTree->GetDirectory()->GetFile(); and SEGV's because GetDirectory() returns zero. -Gene Van Buren
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:25 MET