Jacek, >From your original question, I thought that you want to read entry-10000 from file2 and entry+10000 of file3. If you want to read entry-10000 and entry+10000 of the same Tree, the most efficient thing to do is TTree *T0 = (TTree*)myfile->Get("mytree"); TTree *T2 = (TTree*)myfile->Get("mytree"); TBranch *b_x0 = T0->GetBranch("x"); TBranch *b_x2 = T2->GetBranch("x"); //set addresses for the two branches to x0 and x1 In this way, you get independent buffers management for the branches. Rene Brun On Wed, 17 Apr 2002, Jacek M. Holeczek wrote: > > What is your question? > My question was ... do I really need to open files twice, or maybe there > is some kind of a "CloneMyBranch" avaiable ... ? > Jacek. >
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:50 MET