ATLAS Offline Software
Loading...
Searching...
No Matches
MuonReadoutGeomCnvCfg Namespace Reference

Functions

 MuonReadoutGeometryCnvAlgCfg (flags, name="MuonDetectorCondAlg", **kwargs)

Function Documentation

◆ MuonReadoutGeometryCnvAlgCfg()

MuonReadoutGeomCnvCfg.MuonReadoutGeometryCnvAlgCfg ( flags,
name = "MuonDetectorCondAlg",
** kwargs )

Definition at line 7 of file MuonReadoutGeomCnvCfg.py.

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