h_cutflow.Fill () error

Hello,
I am trying to fill a bin in my histogram with events that pass a specific flag. I have attached the lines of code, in Python with this post, there is bracket after (3).

Using the print command I get around 29623 events which pass the bool flag, but the number of entries using h_cutflow.Fill (3) in the histogram is 96816. I cannot figure out why I am not getting 29623 entries in my histogram.
Thank you for your help !

In your code, what comes after the final 3?

Try:
if has_2e_5gev_2e_loose: h_cutflow.Fill(3)

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