string variable root tree

From: er cuji <supericarus2_at_yahoo.it>
Date: Sat, 12 Mar 2011 18:11:10 +0000


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 Sat Mar 12 2011 - 19:11:16 CET

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