7def MuonReadoutGeometryCnvAlgCfg(flags,name="MuonDetectorCondAlg", **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.MuonGMR4.ReadoutGeomCnvAlg(name=name, **kwargs)
26 result.addCondAlgo(the_alg, primary = True)
27 return result