Skip to content

Commit

Permalink
fix bit changing in nanoaod v13
Browse files Browse the repository at this point in the history
  • Loading branch information
ikrommyd committed Sep 18, 2024
1 parent 510fc37 commit 0df5511
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/egamma_tnp/nanoaod_efficiency.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ def _process_zcands(
doclist = [x for x in good_events.TrigObj.filterBits.__doc__.split(";") if x.endswith("for Electron")]
eledoc = doclist[0] if doclist else None
if eledoc is not None:
if bit == 12 and "Leg 1" not in eledoc and "Leg 2" not in eledoc:
if (bit == 12) and (trigger_pt in [115, 135]) and ("Leg 1" not in eledoc) and ("Leg 2" not in eledoc):
import warnings

warnings.warn(
Expand Down

0 comments on commit 0df5511

Please sign in to comment.