Hi,
I have a TTree which has several branches etc. If I want to histogram a certain variable, satisfying certain conditions, I would normally do, for example:
h1= new TH1F("h1","h1",32,0,3.2);
tree->Draw("var1>>h1","var2>20");
Now, the problem is that what if I want to draw the value of var1 if condition is satisfied OR some dummy number, let’s say -99, if condition “var2>20” fails? I was trying to do something like a ternary conditional in the Draw:
but this apparently didn’t work. Could someone please suggest how to implement this, if it is possible?
Artur.