From 3b761c58ebe9eb6a63c0149eadc108b4e6f760b0 Mon Sep 17 00:00:00 2001 From: scott snyder <snyder@bnl.gov> Date: Thu, 22 Oct 2020 23:47:46 +0200 Subject: [PATCH] TrackToCalo: Configuration fix. It's wrong to throw away a CA and just return an algorithm --- should return the CA instead. See ATLASRECTS-5726. --- .../TrackToCalo/python/CaloExtensionBuilderAlgCfg.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Reconstruction/RecoTools/TrackToCalo/python/CaloExtensionBuilderAlgCfg.py b/Reconstruction/RecoTools/TrackToCalo/python/CaloExtensionBuilderAlgCfg.py index 576e4c5c6ac..adec6503819 100644 --- a/Reconstruction/RecoTools/TrackToCalo/python/CaloExtensionBuilderAlgCfg.py +++ b/Reconstruction/RecoTools/TrackToCalo/python/CaloExtensionBuilderAlgCfg.py @@ -1,13 +1,14 @@ -# Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration +# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration from AthenaConfiguration.ComponentFactory import CompFactory -def getCaloExtenstionBuilderAlgorithm(inputFlags): +def CaloExtensionBuilderAlgCfg(inputFlags): from TrkConfig.AtlasExtrapolatorConfig import AtlasExtrapolatorCfg Trk__ParticleCaloExtensionTool = CompFactory.Trk.ParticleCaloExtensionTool - extrapPFlowCfg = AtlasExtrapolatorCfg(inputFlags) - pcExtensionTool = Trk__ParticleCaloExtensionTool(Extrapolator = extrapPFlowCfg.popPrivateTools()) + result = AtlasExtrapolatorCfg(inputFlags) + pcExtensionTool = Trk__ParticleCaloExtensionTool(Extrapolator = result.popPrivateTools()) CaloExtensionBuilderAlg = CompFactory.Trk.CaloExtensionBuilderAlg CaloExtensionBuilderAlg = CaloExtensionBuilderAlg(LastCaloExtentionTool = pcExtensionTool) + result.addEventAlgo (CaloExtensionBuilderAlg) - return CaloExtensionBuilderAlg + return result -- GitLab