Hi rooters, I have an Ntuple which consists from several blocks (Branches). I can access individual branch. which looks in my case as *Branch :GTRACK : ngtrk/I:dphidir[ngtrk]/F:dqoverpt[ngtrk]/F: * * | drmin[ngtrk]/F:drsig[ngtrk]/F:dtanl[ngtrk]/F: * * | dzca[ngtrk]/F:gtindex[ngtrk]/I:mcidx[ngtrk]/I: * * | ncft[ngtrk]/I:nsmt[ngtrk]/I:phidir[ngtrk]/F: * * | qoverpt[ngtrk]/F:rc[ngtrk]/F:rsig[ngtrk]/F: * * | tanl[ngtrk]/F:tanth[ngtrk]/F:xc[ngtrk]/F:yc[ngtrk]/F: * * | zc[ngtrk]/F:zca[ngtrk]/F * *Entries : 1823 : Total Size = 1477829 bytes File Size = 1477829 * *Baskets : 47 : Basket Size = 32000 bytes Compression= 1.00 * *............................................................................* As you can see it consists from number of tracks and various arrays depending from this number (ngtrk). My question is how to extract an individual array and acces its values? I already learn how to extract individual TLeaf's by doing: TBranch* B_GTRACK = chain->GetBranch("GTRACK"); B_GTRACK->Print(); TLeaf* TL_ngtrk = B_GTRACK->GetLeaf("ngtrk"); Float_t ngtrk = TL_ngtrk->GetValue(); cout << "ntrk = " << B_GTRACK->GetLeaf("ngtrk")->GetValue(1) << endl; // It doesn't work and I need to extract it in another way !!!!!!!!!! void* qoverpt = B_GTRACK->GetLeaf("qoverpt")->GetValuePointer(); thanks, Valentin. ************************************************************* * Valentine Kouznetsov phone : (630) 840 2192(8596) * * Fermilab MS352 fax : (630) 840 8886 * * P.O.Box 500 e-mail: vkuznet@fnal.gov * * Batavia IL, 60510 http://www-d0.fnal.gov/~vkuznet * *************************************************************
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:31 MET