Skip to content

Commit

Permalink
Merge pull request cms-nanoAOD#110 from daiktas/HNL
Browse files Browse the repository at this point in the history
add raw jet pt
  • Loading branch information
vcepaitis authored Feb 9, 2021
2 parents b8acd96 + 9e3ab46 commit c6fb045
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion processors/HNL.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@
jerResolutionFileName=jerResolutionFile[year],
jerSFUncertaintyFileName=jerSFUncertaintyFile[year],
propagateJER = False,
jetKeys = ['pt', 'eta', 'phi' , 'jetId', 'nConstituents'],
jetKeys = ['pt', 'eta', 'phi' , 'jetId', 'nConstituents', 'rawFactor'],
)
)

Expand Down
4 changes: 3 additions & 1 deletion python/modules/JetSelection.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def __init__(
dRCleaning=0.4,
dRP4Subtraction=0.4,
flagDA=False,
storeKinematics=['pt', 'eta', 'phi', 'minDeltaRSubtraction', 'ptLepton', 'ptSubtracted'],
storeKinematics=['pt', 'eta', 'phi', 'minDeltaRSubtraction', 'ptLepton', 'ptSubtracted', 'rawFactor', 'ptRaw'],
globalOptions={"isData": False, "year": 2016},
jetId=TIGHT
):
Expand Down Expand Up @@ -86,6 +86,8 @@ def analyze(self, event):
flagsDA = [0.]*event.nJet

for jet in jets:
jet.ptRaw = jet.pt*(1. - jet.rawFactor)

if jet.pt<self.jetMinPt:
unselectedJets.append(jet)
continue
Expand Down

0 comments on commit c6fb045

Please sign in to comment.