From 7a02dd32a36e09787b360f72864a1e144a91a5e3 Mon Sep 17 00:00:00 2001 From: Andreas Hinzmann Date: Fri, 14 Feb 2020 17:34:50 +0100 Subject: [PATCH] fix python3 error --- PhysicsTools/PatAlgos/python/tools/jetCollectionTools.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PhysicsTools/PatAlgos/python/tools/jetCollectionTools.py b/PhysicsTools/PatAlgos/python/tools/jetCollectionTools.py index e0e93e51d504f..1bee5818d2f32 100644 --- a/PhysicsTools/PatAlgos/python/tools/jetCollectionTools.py +++ b/PhysicsTools/PatAlgos/python/tools/jetCollectionTools.py @@ -361,9 +361,9 @@ def addRecoJetCollection(self, ) ) if recoJetInfo.jetPUMethod == "puppi": - getattr(proc, jetCollection).src = self.pfLabel - getattr(proc, jetCollection).srcWeights = self.pfCand - getattr(proc, jetCollection).applyPuppiWeights = True + getattr(proc, jetCollection).src = self.pfLabel + getattr(proc, jetCollection).srcWeights = pfCand + getattr(proc, jetCollection).applyPuppiWeights = True currentTasks.append(jetCollection) else: jetCollection = inputCollection