How do I draw a histogram with a condition?

Hello,

You cannot filter events directly in the Histogramming Action.
In RDataFrame, the filtering should happen with Filter:

h = df.Filter('Y==1').Histo1D('X')

Cheers,
D

1 Like