Hi,
On Thu, 14 Nov 2002, payman hosseini wrote:
> hi
> Double_t x_arr=tree->GetV1();
> gives the x axis
>
>
> if i understand correctly, tree->GetSelectedRows() returns the total
> number of count
>
> i want the individual count for each elemet of the x_arr
>
This info is not available in the v1, v2, etc variables.
You can make a call to TTree::Draw("mycountvariable") to store it in V1
Rene Brun
> thank you
>
>
>
> Paymon Hosseini
>
> On Thu, 14 Nov 2002, Rene Brun wrote:
>
> > Hi,
> >
> > use tree->GetSelectedRows().
> > Also the return value of tree->Draw
> >
> > Rene Brun
> >
> > On Thu, 14 Nov 2002, payman hosseini wrote:
> >
> > > 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