Hi, I would like to transform a program using TTree to a program using TChain. Basically, to read my TTree, I do : TBranch* small = T.GetBranch("small_branch"); TBranch* big = T.GetBranch("the_whole_event") ; for (Int_t i=0;i<nevent;i++) { small->GetEvent(i); if (big->IsNoGood()) continue; T.GetEvent(i); //read complete accepted event in memory } I do not see cleary how this could be done with chains. Should I disable all branches but the small one, read the event, and then, if ok, enable the other branches, and read again the same event ? Or is another way ? Thanks. -- APHECETCHE Laurent (mailto:aphecetche@ganil.fr) GANIL, B.P. 5027, 14076, Caen Cedex 5, France Vox: +33 (0)2 31 45 45 85 - Fax: +33 (0)2 31 45 46 65 WWW: http://ganp03.in2p3.fr/nof/ & (perso.) http://www.mygale.org/~p0mp0n
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:32 MET