Skip to content

Commit 58eeebf

Browse files
committed
Modifiers to ensure that Puppi weights are recomputed for JMENanoV15 workflows
1 parent 9be54e5 commit 58eeebf

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

PhysicsTools/NanoAOD/python/custom_jme_cff.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1468,5 +1468,11 @@ def addAK4JetTasks(proc, addAK4CHSJetTasks, addAK4PuppiJetTasks):
14681468
if runOnMC:
14691469
process.genWeightsTable.keepAllPSWeights = True
14701470

1471-
return process
1471+
###########################################################################
1472+
# Make sure that the Puppi weights are recomputed with the latest version
1473+
###########################################################################
1474+
(run2_nanoAOD_106Xv2 | run3_nanoAOD_pre142X | nanoAOD_rePuppi).toModify(
1475+
process, lambda p: RecomputePuppiWeights(p)
1476+
)
14721477

1478+
return process

0 commit comments

Comments
 (0)