Re: TTree Draw/Scan/Project

From: Marc Escalier <escalier_at_lal.in2p3.fr>
Date: Tue, 6 Oct 2009 22:14:59 +0200


thanks

you my day !

:-)


On Tue, 6 Oct 2009, Philippe Canal wrote:

> 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:15:04 CEST

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