Hi Dan, You can do double phioffset3 = l_phioffset->GetValue(3); or double *phioffset = (double*)l_phioffset->GetValuepointer(); and then access pihioffset[3]; Rene Brun On Thu, 28 Nov 2002, Daniel Holmes wrote: > thanks Rene, > > How do i change the code below so i can read a 2-D, array.. i can plot : > t->Draw("phioffset[3]"); using the "phioffset" leaf. > > cheers, > > Dan. > > > > With your example, you can do > > TLeaf *l_phioffset = t->GetLeaf(("phioffset"); > > l_phioffset->GetBranch()->GetEntry(5); //to read entry 5 > > double phioffset = l_phioffset->GetValue(); > > > > Rene Brun > > > >
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:21 MET