Re: TTree::Draw

From: Rene Brun <brun_at_pcroot.cern.ch>
Date: Fri, 8 Jul 2005 16:33:03 +0200 (MEST)


Hi Carlos,

This is currently not possible, but I agree with you that TTree::Draw should be able to support this case of operators with frequently used classes such as the Lorentz vectors.

I suggest using TTree::MakeProxy and implement the few lines of code to produce the equivalent

Rene Brun

On
Fri, 8 Jul 2005, Carlos Munoz Camacho wrote:

>
> Hi,
>
> If I have a tree with two branches, each containing a TLorentzVector p1
> and p2, in ROOT 4.00/08 :
>
> T->Draw("(p1+p2).Mag()");
>
> does not work. Is this implemented on more recent versions? Thanks !
>
> Carlos
>
Received on Fri Jul 08 2005 - 16:33:09 MEST

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:10 MET