Hi, You have a array with 2 dimensions. The first dimension ranged from 0 to MUO_-1 and the second dimentsion range from 0 to 2. To draw the very first element tup->Draw("MUO.trk[0][0]"); Otherwise >tup->Draw("MUO.trk.P[0]") is the same as tup->Draw("MUO.trk.P[0][]") and draw 3 values of P : P[0][0], P[0][1], P[0][2] > tup->Draw("MUO.trk.P[][0]") Draws MUO values of P: P[0][0], P[1][0], .... P[MUO-2][0], P[MUO-1][0] Cheers, Philippe. -----Original Message----- From: owner-roottalk@pcroot.cern.ch [mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Elena Vataga Sent: Monday, March 11, 2002 8:30 AM To: roottalk@pcroot.cern.ch Subject: [ROOT] Accesing arrays Hello rooters! Sorry for 'naive' question of beginner. I have TTree with TClonesArray, one of members in TObject is Array Float_t P[3]; .. *............................................................................* *Br 117 :MUO.trk.P[3] : P[MUO_] * *Entries : 95000 : Total Size= 1293112 bytes File Size = 962230 * *Baskets : 26 : Basket Size= 64000 bytes Compression= 1.34 * *............................................................................* Which is the correct way to draw the first entrance in this array: tup->Draw("MUO.trk.P[0]") or tup->Draw("MUO.trk.P[][0]") or tup->Draw("MUO.trk.P[0][]") ? Thank you in advance, Elena
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:45 MET