Re: [ROOT] TTree question

From: payman hosseini (phossein@midway.uchicago.edu)
Date: Thu Nov 14 2002 - 20:46:39 MET


hi
thank you for your help
i have another question


assume i have 
tree->Draw(branch1)

Double_t x_arr=tree->GetV1();
gives the x axis

how can i get the counts for each of the elements in the x_arr?

thank you very much


Paymon Hosseini

On Thu, 14 Nov 2002, Rene Brun wrote:

> I do not understand your question. Please explain better what
> you want to do. If you are new to Root, I suggest to read the
> examples at $ROOTSYS/test/tree0,1,2,3,4.C
> 
l> Rene Brun
> 
> On Wed, 13 Nov 2002, payman hosseini wrote:
> 
> > 
> > hi
> > 
> > asuume one has the following tree
> > 
> > branch1		branch2	
> > 1		0
> > 1		1
> > 2		0
> > 2		1
> > 3		0
> > 3		1
> > 
> > is there an easy way to break up this tree, so one will have the following
> > 
> > branch1		branch2		branch3		
> > 1	0	2	0	3	0
> > 1	1	2	1	3	1
> > 
> > 
> > 
> > thanks
> > 
> > paymon hosseini
> > 
> 



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:18 MET