From 40d168d2b3732ab61d20cc1bab4a69c71387ed3b Mon Sep 17 00:00:00 2001 From: lathomasexport Date: Tue, 13 Jul 2021 00:31:44 +0200 Subject: [PATCH] Pick right jet collection for Type1 PUPPI MET --- .../python/tools/runMETCorrectionsAndUncertainties.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)) )