From ce2326cf704d6bc91748504dcc2b2d41a89e0771 Mon Sep 17 00:00:00 2001 From: Walter Lampl <Walter.Lampl@cern.ch> Date: Fri, 5 Apr 2019 12:03:58 +0200 Subject: [PATCH] Make METAssociationTool private --- .../MET/METReconstruction/Root/METAssociationTool.cxx | 3 ++- Reconstruction/MET/METReconstruction/python/METAssocConfig.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Reconstruction/MET/METReconstruction/Root/METAssociationTool.cxx b/Reconstruction/MET/METReconstruction/Root/METAssociationTool.cxx index 3bb86f572d9b..81ff59b58b35 100644 --- a/Reconstruction/MET/METReconstruction/Root/METAssociationTool.cxx +++ b/Reconstruction/MET/METReconstruction/Root/METAssociationTool.cxx @@ -43,7 +43,8 @@ namespace met { // Constructors //////////////// METAssociationTool::METAssociationTool(const std::string& name) : - AsgTool(name) + AsgTool(name), + m_metassociators(this) { declareProperty( "METAssociators", m_metassociators ); declareProperty( "METSuffix", m_metsuffix = "AntiKt4LCTopo" ); diff --git a/Reconstruction/MET/METReconstruction/python/METAssocConfig.py b/Reconstruction/MET/METReconstruction/python/METAssocConfig.py index 4e4ca3c274ad..cf254701a6ff 100644 --- a/Reconstruction/MET/METReconstruction/python/METAssocConfig.py +++ b/Reconstruction/MET/METReconstruction/python/METAssocConfig.py @@ -103,8 +103,8 @@ def getAssociator(config,suffix,doPFlow=False, tool.TrackIsolationTool = trkisotool tool.CaloIsolationTool = caloisotool - if not hasattr(ToolSvc,tool.name()): - ToolSvc += tool + #if not hasattr(ToolSvc,tool.name()): + # ToolSvc += tool return tool ################################################################################# -- GitLab