Hi Alex, Do: TFile f("myfile.root"); TNtuple *ntuple = (TNtuple*)f.Get("ntuple name"); float x,y,z; ntuple->SetBranchAddress("y",&y); ntuple->GetEntry(342); cout <<"y="<<y<endl; Rene Brun On Thu, 9 Jan 2003 suaide@physics.wayne.edu wrote: > Hello all > > I have a very basic question that I couldn't find help in the root > documentation. > > I have a TNtuple with 3 variables, say x,y and z. There are 1000 entries > in this TNtuple. > > The question is: how can I get the value of y for the 342th entry, for > example? I am using root 3.03.09 on Linux RedHat 7.2 > > Regards > > Alex >
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:08 MET