[ROOT] How to get data from a ntuple?

From: Zhou Zhang (zhozhang@ic.sunysb.edu)
Date: Tue May 09 2000 - 14:29:14 MEST


Hi rooters,

  I have two ntuples n1, n2 which have the float variable list
(x1,y1,u1,v1) and (x2,y2,u2,v2) seperately. I need to get the data of
(x1,y1) and (x2,y2) from these two ntuples and put them together into
a new ntuple.  I tried to use following piece of macro but failed:

TBranch* bx1 = n1->GetBranch("x1");
TLeaf*  lx1 = bx1->GetLeaf("x1");
Float_t fx1 = lx1->GetValue(0);//first entry
the value of fx1 is not what I expected.

who could tell me how to do it? 

	Thanks a lot,

zhou



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:24 MET