Re: TTree Draw/Scan/Project

From: Philippe Canal <pcanal_at_fnal.gov>
Date: Tue, 6 Oct 2009 15:12:05 -0500


Hi Marc,

Use tree1->AddFriend(tree2);

Cheers,
Philippe.

Marc Escalier wrote:
> Hello,
>
> i would have naive question
>
> Let's consider 2 TTree
>
> TTree *tree1;
> TTree *tree2;
>
> tree1 contains variable1
> tree2 contains variable2
>
> How to do (in the easiest way) something like :
>
> tree1.Draw("variable1:variable2","easy condition on variable2")
>
> if i do this last command, variable2 is not known whereas i don't do :
> tree2.Draw("variable2")
>
> i mean how to access from a tree a variable that is in another tree
>
> thank you
>
Received on Tue Oct 06 2009 - 22:12:09 CEST

This archive was generated by hypermail 2.2.0 : Tue Oct 06 2009 - 23:50:02 CEST