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

Functions

 MuonTransformCacheCfg (flags, name="MuonSimHitSortingAlg", **kwargs)

Function Documentation

◆ MuonTransformCacheCfg()

MuonTrfCacheConfig.MuonTransformCacheCfg ( flags,
name = "MuonSimHitSortingAlg",
** kwargs )

Definition at line 3 of file MuonTrfCacheConfig.py.

3def MuonTransformCacheCfg(flags, name="MuonSimHitSortingAlg", **kwargs):
4 from ROOT.ActsTrk import DetectorType
5 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
6 from AthenaConfiguration.ComponentFactory import CompFactory
7 from AthenaConfiguration.Enums import ProductionStep
8
9 result = ComponentAccumulator()
10 if flags.Common.ProductionStep != ProductionStep.Simulation or \
11 not flags.Sim.ReleaseGeoModel or \
12 not flags.Muon.usePhaseIIGeoSetup:
13 return result
14 if flags.Detector.GeometryMDT:
15 result.addCondAlgo(CompFactory.MuonG4.GeoModelTrfCacheAlg(name="MuonMdtTrfCacheAlg",
16 writeKey="MdtActsAlignContainer",
17 DetectorType=DetectorType.Mdt))
18 if flags.Detector.GeometryRPC:
19 result.addCondAlgo(CompFactory.MuonG4.GeoModelTrfCacheAlg(name="MuonRpcTrfCacheAlg",
20 writeKey="RpcActsAlignContainer",
21 DetectorType=DetectorType.Rpc))
22 if flags.Detector.GeometryTGC:
23 result.addCondAlgo(CompFactory.MuonG4.GeoModelTrfCacheAlg(name="MuonTgcTrfCacheAlg",
24 writeKey="TgcActsAlignContainer",
25 DetectorType=DetectorType.Tgc))
26 if flags.Detector.GeometrysTGC:
27 result.addCondAlgo(CompFactory.MuonG4.GeoModelTrfCacheAlg(name="MuonsTgcTrfCacheAlg",
28 writeKey="sTgcActsAlignContainer",
29 DetectorType=DetectorType.sTgc))
30 if flags.Detector.GeometryMM:
31 result.addCondAlgo(CompFactory.MuonG4.GeoModelTrfCacheAlg(name="MuonMmTrfCacheAlg",
32 writeKey="MmActsAlignContainer",
33 DetectorType=DetectorType.Mm))
34
35 return result