ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonPhaseII
MuonCnv
MuonGeometryCnv
python
MuonReadoutGeomCnvCfg.py
Go to the documentation of this file.
1
2
#Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
4
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
5
from
AthenaConfiguration.ComponentFactory
import
CompFactory
6
7
def
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
MuonReadoutGeomCnvCfg.MuonReadoutGeometryCnvAlgCfg
MuonReadoutGeometryCnvAlgCfg(flags, name="MuonDetectorCondAlg", **kwargs)
Definition
MuonReadoutGeomCnvCfg.py:7
Generated on
for ATLAS Offline Software by
1.17.0