Skip to content

Commit 574643a

Browse files
committed
Revert modification in setupPuppiForPackedPF(), set Puppi producers to use original packedPFCandidates collection in miniAODFromMiniAOD_customizeCommon()
1 parent 70f135a commit 574643a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

PhysicsTools/PatAlgos/python/slimming/miniAODFromMiniAOD_tools.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ def miniAODFromMiniAOD_customizeCommon(process):
55

66
task = getPatAlgosToolsTask(process)
77

8+
###########################################################################
9+
# Set puppi producers to use the original packedPFCandidate collection
10+
###########################################################################
11+
process.packedpuppi.candName = 'packedPFCandidates::@skipCurrentProcess'
12+
process.packedpuppiNoLep.candName = 'packedPFCandidates::@skipCurrentProcess'
13+
814
###########################################################################
915
# Update packedPFCandidates with the recomputed puppi weights
1016
###########################################################################

PhysicsTools/PatAlgos/python/tools/jetTools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ def setupPuppiForPackedPF(process, useExistingWeights=True, postfix=''):
255255
if not hasattr(process, puppiLabel):
256256
addToProcessAndTask(puppiLabel, puppi.clone(
257257
useExistingWeights = useExistingWeights,
258-
candName = 'packedPFCandidates::@skipCurrentProcess',
258+
candName = 'packedPFCandidates',
259259
vertexName = 'offlineSlimmedPrimaryVertices'), process, task)
260260

261261
puppiNoLepLabel = puppiLabel+'NoLep'

0 commit comments

Comments
 (0)