8 from MuonGeoModelR4.MuonGeoModelConfig
import MuonAlignStoreCfg
10 result = ComponentAccumulator()
11 result.merge(MuonAlignStoreCfg(flags))
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)