From 31dbaaedc2eee57d4743333861203f8400923301 Mon Sep 17 00:00:00 2001 From: Bill Balunas <bill.balunas@cern.ch> Date: Mon, 16 Sep 2019 17:54:27 +0200 Subject: [PATCH] Fix auto-configuration of container names for modifiers --- Reconstruction/Jet/JetRec/python/JetToolSupport.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Reconstruction/Jet/JetRec/python/JetToolSupport.py b/Reconstruction/Jet/JetRec/python/JetToolSupport.py index 3f1f40556db..5a3eb2f8c56 100644 --- a/Reconstruction/Jet/JetRec/python/JetToolSupport.py +++ b/Reconstruction/Jet/JetRec/python/JetToolSupport.py @@ -138,7 +138,7 @@ class JetToolManager: # "JetContainer" to set that property to the given string containerName. def configureContainerName(modifiers, containerName): for mod in modifiers: - if hasattr(mod, "JetContainer"): + if "JetContainer" in mod.properties: mod.JetContainer = containerName # Makes a deep copy of the input modifier list. @@ -161,7 +161,7 @@ class JetToolManager: else: return containerConfiguredCopy(self.modifiersMap[altname], output) if type(modifiersin) == str: - return containerConfiguredCopy(self.modifiersMap[modifiersin, output)] + return containerConfiguredCopy(self.modifiersMap[modifiersin], output) return containerConfiguredCopy(modifiersin, output) -- GitLab