Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion NanoGardener/python/modules/addTnpTree.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def IsMatched(self, lep, trigObjCollection):
return match

def matchesPrompt(self, lep, genparts):
return (lep.genPartFlav == 1 and genparts[lep.genPartIdx].statusFlags & 1) or (lep.genPartFlav == 15 and genparts[lep.genPartIdx].statusFlags & (1 << 5))
return (lep.genPartFlav == 1 and genparts[lep.genPartIdx].statusFlags & 1) or (lep.genPartFlav == 15 and (genparts[lep.genPartIdx].statusFlags >> 5) & 1)

def analyze(self, event):
# Get Jet and Ele collections
Expand Down