Matching different variables of histograms' entries

Hi,
I have histograms showing different variables of simulated jets on Root Object Browser. I want to Draw() a histogram of one variable and have it show only the entries that are in a certain range of another variable. I know MyTree->Draw(“var1”, “var2 > x”), which selects only entries whose var2 is more than x, then plot var1 with them. But how do we make it select entries in between two values, e.i. x1 < var2 < x2?
Thanks in advance

_ROOT Version: root 6.14.04-x86_64-slc6-gcc62-opt
Platform: Not Provided
Compiler: Not Provided


"var2 > x1 && var2 < x2"

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.