Re: string variable root tree

From: Philippe Canal <pcanal_at_fnal.gov>
Date: Sat, 12 Mar 2011 19:22:51 -0600


Try:

     tree->Draw("var1","varc == \"type1\" ")

Cheers
Philippe.

On 3/12/11 12:11 PM, er cuji wrote:
> Hi,
>
> I have filled a tree with a string variable (declaring its type /C). Let's call it varc. Suppose this variable can have two
> values, say "type1" and "type2". This variable are comparing on the x axis of the distribution of the variable.
>
> I would like to draw some other variables of the tree while cutting on this string variable. How can I impose the cut?
>
> I was trying
>
> tree->Draw("var1","varc == type1")
>
> but this is not working. How can I compare the variable value and this string within a cut?
> Thanks
>
> SI
>
>
Received on Sun Mar 13 2011 - 02:22:58 CET

This archive was generated by hypermail 2.2.0 : Sun Mar 13 2011 - 23:50:01 CET