hello again - When I make a TChain out of several files, I would like to store the chain configuration in a root file rather than in a macro. Thus, I tried to write out the chain itself to a root file. However, when i read it back from file i can't seem to get the tree back: i get all of my files: root [4] TrgTree->ls() OBJ: TChainElement TrgTree $TRGTREE/TrgTree_003432s000.root : 0 OBJ: TChainElement TrgTree $TRGTREE/TrgTree_003432s001.root : 0 OBJ: TChainElement TrgTree $TRGTREE/TrgTree_003433s000.root : 0 ... (NB, the environmental variable TRGTREE is defined already). However I can't get the tree out: root [5] TrgTree->GetTree() (class TTree*)0x0 root [6] TrgTree.Draw("Run") *** Break *** segmentation violation Root > Is there a trick to telling the chain to re-initialize itself with the tree? - Peter ---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ Dr. Peter A. Steinberg Brookhaven National Laboratory Assistant Scientist Bldg 555, Upton NY, 11973 ---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ Office: 631-344-4390 mailto:Peter.Steinberg@bnl.gov Mobile: 917-549-3094 http://www.rhic.bnl.gov/~steinber --> E-mail my cell phone (100 chars max): steinber@steinberg.chm.bnl.gov <-- ---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:27 MET