ATLAS Offline Software
Loading...
Searching...
No Matches
MuonReadoutGeomCnvCfg.py
Go to the documentation of this file.
2#Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
4from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
5from AthenaConfiguration.ComponentFactory import CompFactory
6
7def MuonReadoutGeometryCnvAlgCfg(flags,name="MuonDetectorCondAlg", **kwargs):
8 from MuonGeoModelR4.MuonGeoModelConfig import MuonAlignStoreCfg
9
10 result = ComponentAccumulator()
11 result.merge(MuonAlignStoreCfg(flags))
12 alignStores = []
13 if flags.Detector.GeometryMDT:
14 alignStores+=["MdtActsAlignContainer"]
15 if flags.Detector.GeometryRPC:
16 alignStores+=["RpcActsAlignContainer"]
17 if flags.Detector.GeometryTGC:
18 alignStores+=["TgcActsAlignContainer"]
19 if flags.Detector.GeometrysTGC:
20 alignStores+=["sTgcActsAlignContainer"]
21 if flags.Detector.GeometryMM:
22 alignStores+=["MmActsAlignContainer"]
23 kwargs.setdefault("AlignmentKeys", alignStores)
24 from MuonConfig.MuonConfigFlags import GeoTrfCacheMode
25 kwargs.setdefault("splitTrfCache", flags.Muon.AlignedGeoTrfCacheMode != GeoTrfCacheMode.FullCacheCond)
26 the_alg = CompFactory.MuonGMR4.ReadoutGeomCnvAlg(name=name, **kwargs)
27 result.addCondAlgo(the_alg, primary = True)
28 return result
MuonReadoutGeometryCnvAlgCfg(flags, name="MuonDetectorCondAlg", **kwargs)