diff --git a/InnerDetector/InDetDetDescr/TRT_GeoModel/python/TRT_GeoModelConfig.py b/InnerDetector/InDetDetDescr/TRT_GeoModel/python/TRT_GeoModelConfig.py index 7d8a1cd128540cb7a1c60f7036aaec581bbda68f..a71eda873d0d787df60136fa6d3b7c8315a32cfb 100644 --- a/InnerDetector/InDetDetDescr/TRT_GeoModel/python/TRT_GeoModelConfig.py +++ b/InnerDetector/InDetDetDescr/TRT_GeoModel/python/TRT_GeoModelConfig.py @@ -1,5 +1,5 @@ # -# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration +# Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration # from AthenaConfiguration.AccumulatorCache import AccumulatorCache @@ -24,7 +24,8 @@ def TRT_GeoModelCfg(flags): trtDetectorTool.DoKryptonMixture = False from TRT_ConditionsServices.TRT_ConditionsServicesConfig import TRT_StrawStatusSummaryToolCfg - acc.popToolsAndMerge(TRT_StrawStatusSummaryToolCfg(flags)) + trtDetectorTool.SummaryTool = acc.popToolsAndMerge(TRT_StrawStatusSummaryToolCfg(flags)) + geoModelSvc.DetectorTools += [ trtDetectorTool ] acc.merge(db) return acc diff --git a/InnerDetector/InDetDetDescr/TRT_GeoModel/src/TRT_DetectorTool.cxx b/InnerDetector/InDetDetDescr/TRT_GeoModel/src/TRT_DetectorTool.cxx index 28651a2f88392eefb605f93fef57657b2fc74482..ab3c2b52cd0934f517397b37cd489baac8cce104 100755 --- a/InnerDetector/InDetDetDescr/TRT_GeoModel/src/TRT_DetectorTool.cxx +++ b/InnerDetector/InDetDetDescr/TRT_GeoModel/src/TRT_DetectorTool.cxx @@ -36,7 +36,6 @@ TRT_DetectorTool::TRT_DetectorTool( const std::string& type, const std::string& m_initialLayout(true), m_geoDbTagSvc("GeoDbTagSvc",name), m_geometryDBSvc("InDetGeometryDBSvc",name), - m_sumTool("TRT_StrawStatusSummaryTool", this), m_doArgonMixture(1), m_doKryptonMixture(1), m_useDynamicAlignFolders(false), diff --git a/InnerDetector/InDetDetDescr/TRT_GeoModel/src/TRT_DetectorTool.h b/InnerDetector/InDetDetDescr/TRT_GeoModel/src/TRT_DetectorTool.h index 23b8d73875a9e5b9333fd6fde1f6a4ea2e021c5d..4ff5ea5dd3ed51c0d4d700e7b8b876945c153c04 100755 --- a/InnerDetector/InDetDetDescr/TRT_GeoModel/src/TRT_DetectorTool.h +++ b/InnerDetector/InDetDetDescr/TRT_GeoModel/src/TRT_DetectorTool.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration */ #ifndef TRT_GEOMODEL_TRTDETECTORTOOL_H @@ -53,7 +53,7 @@ public: ServiceHandle< IGeoDbTagSvc > m_geoDbTagSvc; ServiceHandle< IGeometryDBSvc > m_geometryDBSvc; - ToolHandle<ITRT_StrawStatusSummaryTool> m_sumTool; // added for Argon + ToolHandle<ITRT_StrawStatusSummaryTool> m_sumTool{this, "SummaryTool", "TRT_StrawStatusSummaryTool"}; // added for Argon bool m_doArgonMixture; bool m_doKryptonMixture;