Hi Rooters, TChain's are great. Two things that would make them greater, though: 1) Allow for wildcards in Add. A common model is to create many files with identically structured TTrees, each from a different process; then you want to chain them together in one bunch. Having to Add each one of them by hand to the chain is tedious to say the least! I would very much like to be able to: TChain chain("TheTree"); chain->Add("/home/gah/data/TreeOut_*.root") and away I go. 2) Since a TChain _IS_ a TTree, TChain->Print() should produce at least as much information as that in TTree->Print(), in addition to listing the attached files. I know I can call chain->GetTree()->Print(), but sometimes I don't know I *have* a chain, since I'm working with a pointer or reference to a TTree (which happens sometimes to be a TChain). BTW, I haven't looked carefully, but: What happens if you Fill() a TChain? Where does that filled data go? George Heintzelman gah@bnl.gov
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:37 MET