Re: Conditioning
Rene Brun (Rene.Brun@cern.ch)
Mon, 16 Nov 1998 14:16:41 +0100
Dott. Pappalardo G.S. wrote:
>
> Dear ROOTers,
>
> I need to know how to condition a variable belonging to a branch of a tree
> with a variable belonging to another branch.
> For example: I ha a variable a belonging to branch A and a variable b
> belonging to a branch B. I need for example, the spectrum of variable a
> when b>0.
> Any help will be appreciated
> thanks
> Giuseppe Pappalardo
Hi Giuseppe,
Have a look at URL:
http://root.cern.ch/root/HowtoReadTree.html
simply do:
tree->Draw("a","b>0")
Rene Brun