ATLAS Offline Software
MuonReadoutGeomCnvCfg.py
Go to the documentation of this file.
1 
2 #Copyright (C) 2002-2024 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="MuonDetectorManagerCondAlg", **kwargs):
8  from MuonGeoModelR4.MuonGeoModelConfig import MuonAlignStoreCfg
9 
10  result = ComponentAccumulator()
11  result.merge(MuonAlignStoreCfg(flags))
12  alignStores = []
13 
14  if flags.Detector.GeometryMDT:
15  alignStores+=["MdtActsAlignContainer"]
16  if flags.Detector.GeometryRPC:
17  alignStores+=["RpcActsAlignContainer"]
18  if flags.Detector.GeometryTGC:
19  alignStores+=["TgcActsAlignContainer"]
20  if flags.Detector.GeometrysTGC:
21  alignStores+=["sTgcActsAlignContainer"]
22  if flags.Detector.GeometryMM:
23  alignStores+=["MmActsAlignContainer"]
24  kwargs.setdefault("AlignmentKeys", alignStores)
25  the_alg = CompFactory.MuonReadoutGeomCnvAlg(name=name, **kwargs)
26  result.addCondAlgo(the_alg, primary = True)
27  return result
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
MuonGeoModelConfig.MuonAlignStoreCfg
def MuonAlignStoreCfg(flags)
Definition: MuonGeoModelConfig.py:84
MuonReadoutGeomCnvCfg.MuonReadoutGeometryCnvAlgCfg
def MuonReadoutGeometryCnvAlgCfg(flags, name="MuonDetectorManagerCondAlg", **kwargs)
Definition: MuonReadoutGeomCnvCfg.py:7