6 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
7 from AthenaConfiguration.ComponentFactory
import CompFactory
8 result = ComponentAccumulator()
9 cond_alg = CompFactory.MuonG4.GeoModelTrfCacheAlg(name= f
"{name}CondAlg",
12 result.addCondAlgo(cond_alg)
14 event_alg = CompFactory.MuonG4.AlignStoreProviderAlg(name=f
"{name}Alg",
15 writeKey=key, readKey=key)
16 result.addEventAlgo(event_alg)
21 from ROOT.ActsTrk
import DetectorType
22 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
23 from AthenaConfiguration.Enums
import ProductionStep
25 result = ComponentAccumulator()
27 if (flags.Common.ProductionStep != ProductionStep.Simulation
or \
28 not flags.Muon.usePhaseIIGeoSetup):
30 if flags.Detector.GeometryMDT:
32 key=
"MdtActsAlignContainer",
33 detType=DetectorType.Mdt))
34 if flags.Detector.GeometryRPC:
36 key=
"RpcActsAlignContainer",
37 detType=DetectorType.Rpc))
38 if flags.Detector.GeometryTGC:
40 key=
"TgcActsAlignContainer",
41 detType=DetectorType.Tgc))
42 if flags.Detector.GeometrysTGC:
44 key=
"sTgcActsAlignContainer",
45 detType=DetectorType.sTgc))
46 if flags.Detector.GeometryMM:
48 key=
"MmActsAlignContainer",
49 detType=DetectorType.Mm))