diff --git a/PhysicsTools/PatUtils/python/tools/runMETCorrectionsAndUncertainties.py b/PhysicsTools/PatUtils/python/tools/runMETCorrectionsAndUncertainties.py index d13d19055248d..1bcf4c4a7d4e0 100644 --- a/PhysicsTools/PatUtils/python/tools/runMETCorrectionsAndUncertainties.py +++ b/PhysicsTools/PatUtils/python/tools/runMETCorrectionsAndUncertainties.py @@ -1535,7 +1535,7 @@ def updateJECs(self,process,jetCollection, patMetModuleSequence, postfix): from PhysicsTools.PatAlgos.producersLayer1.jetUpdater_cff import updatedPatJetCorrFactors patJetCorrFactorsReapplyJEC = updatedPatJetCorrFactors.clone( - src = jetCollection, + src = jetCollection if not self._parameters["Puppi"].value else cms.InputTag("slimmedJetsPuppi"), levels = ['L1FastJet', 'L2Relative', 'L3Absolute'], @@ -1546,7 +1546,7 @@ def updateJECs(self,process,jetCollection, patMetModuleSequence, postfix): from PhysicsTools.PatAlgos.producersLayer1.jetUpdater_cff import updatedPatJets patJetsReapplyJEC = updatedPatJets.clone( - jetSource = jetCollection, + jetSource = jetCollection if not self._parameters["Puppi"].value else cms.InputTag("slimmedJetsPuppi"), jetCorrFactorsSource = cms.VInputTag(cms.InputTag("patJetCorrFactorsReapplyJEC"+postfix)) )