Alkass
December 1, 2014, 9:46am
1
Hello
While trying to draw two vars when the 3rd has a specific value requirement
tree->Draw("var1:var2","var3=0")
I get
So, I ve tried also couple of more things like
tree->Draw("var1:var2","var3==0")
but nothing works…I guess this is a more generic issue when one asks to have instead of a cut a specific value requirement ?
Thanks
couet
December 1, 2014, 10:41am
2
The 2nd syntax you used is the correct one. What do you get when you do that ?
Alkass
December 1, 2014, 11:09am
3
I get this
(Long64_t)31022
and actually 31022 is the number of my entries in the tree. Further, if I just do
tree->Draw(“var3”,“var3==0”) I get
(Long64_t)0
and nothing is drawn in the canvas, but actually this is how my var3 distr looks like
Thanks
It is quite possible that you have no event for which “var3 == 0” (as “var3” seems to be a floating point variable).
Try:
tree->Draw(“var3”, “abs(var3) < 0.001”)