6 result = ComponentAccumulator()
7 the_tool = CompFactory.MuonGMR4.MuonGeoUtilityTool(name, **kwargs)
8 result.addPublicTool(the_tool, primary =
True)
11 result = ComponentAccumulator()
13 the_tool = CompFactory.MuonGMR4.MdtReadoutGeomTool(name, **kwargs)
14 result.setPrivateTools(the_tool)
18 result = ComponentAccumulator()
20 the_tool = CompFactory.MuonGMR4.RpcReadoutGeomTool(name, **kwargs)
21 result.setPrivateTools(the_tool)
25 result = ComponentAccumulator()
27 the_tool = CompFactory.MuonGMR4.TgcReadoutGeomTool(name, **kwargs)
28 result.setPrivateTools(the_tool)
32 result = ComponentAccumulator()
34 the_tool = CompFactory.MuonGMR4.sTgcReadoutGeomTool(name, **kwargs)
35 result.setPrivateTools(the_tool)
39 result = ComponentAccumulator()
41 the_tool = CompFactory.MuonGMR4.MmReadoutGeomTool(name, **kwargs)
42 result.setPrivateTools(the_tool)
46 result = ComponentAccumulator()
47 from AthenaConfiguration.Enums
import LHCPeriod
48 kwargs.setdefault(
"run4Layout", flags.GeoModel.Run >= LHCPeriod.Run4)
49 the_tool = CompFactory.MuonGMR4.ChamberAssembleTool(name, **kwargs)
50 result.setPrivateTools(the_tool)
54 result = ComponentAccumulator()
56 if flags.Detector.GeometryMDT:
59 if flags.Detector.GeometryRPC:
62 if flags.Detector.GeometryTGC:
65 if flags.Detector.GeometrysTGC:
68 if flags.Detector.GeometryMM:
71 from AthenaConfiguration.Enums
import ProductionStep
72 if flags.Common.ProductionStep
is not ProductionStep.Simulation:
74 print(
"MuonDetectorToolCfg: Adding ChamberAssebmbleTool to MuonDetectorTool")
75 kwargs.setdefault(
"ReadoutEleBuilders", sub_detTools)
76 the_tool = CompFactory.MuonGMR4.MuonDetectorTool(name = name, **kwargs)
77 result.setPrivateTools(the_tool)
88 result = ComponentAccumulator()
89 if not flags.Muon.usePhaseIIGeoSetup:
return result
90 from MuonCondAlgR4.ConditionsConfig
import ActsMuonAlignCondAlgCfg
91 result.merge(ActsMuonAlignCondAlgCfg(flags))
92 from ActsAlignmentAlgs.AlignmentAlgsConfig
import ActsAlignStoreProviderAlgCfg
94 from MuonG4TrfCache.MuonTrfCacheConfig
import MuonTransformCacheCfg
95 result.merge(MuonTransformCacheCfg(flags))
97 setCondDep = flags.Muon.enableAlignment
or flags.Sim.ReleaseGeoModel
98 from ROOT.ActsTrk
import DetectorType
99 if flags.Detector.GeometryMDT:
100 result.merge(ActsAlignStoreProviderAlgCfg(flags,
101 name=
"ActsDetAlignmentAlgMdt",
102 CondAlignStore=
"MdtActsAlignContainer" if setCondDep
else "",
103 EventAlignStore=
"MdtActsAlignContainer",
104 SplitPhysVolCache =
False,
105 SplitActsTrfCache =
False,
106 FillAlignCache =
False,
107 DetectorType=DetectorType.Mdt))
108 if flags.Detector.GeometryRPC:
109 result.merge(ActsAlignStoreProviderAlgCfg(flags,
110 name=
"ActsDetAlignmentAlgRpc",
111 CondAlignStore=
"RpcActsAlignContainer" if setCondDep
else "",
112 EventAlignStore=
"RpcActsAlignContainer",
113 SplitPhysVolCache =
False,
114 SplitActsTrfCache =
False,
115 FillAlignCache =
False,
116 DetectorType=DetectorType.Rpc))
117 if flags.Detector.GeometryTGC:
118 result.merge(ActsAlignStoreProviderAlgCfg(flags,
119 name=
"ActsDetAlignmentAlgTgc",
120 CondAlignStore=
"TgcActsAlignContainer" if setCondDep
else "",
121 EventAlignStore=
"TgcActsAlignContainer",
122 SplitPhysVolCache =
False,
123 SplitActsTrfCache =
False,
124 FillAlignCache =
False,
125 DetectorType=DetectorType.Tgc))
126 if flags.Detector.GeometrysTGC:
127 result.merge(ActsAlignStoreProviderAlgCfg(flags,
128 name=
"ActsDetAlignmentAlgSTGC",
129 CondAlignStore=
"sTgcActsAlignContainer" if setCondDep
else "",
130 EventAlignStore=
"sTgcActsAlignContainer",
131 SplitPhysVolCache =
False,
132 SplitActsTrfCache =
False,
133 FillAlignCache =
False,
134 DetectorType=DetectorType.sTgc))
136 if flags.Detector.GeometryMM:
137 result.merge(ActsAlignStoreProviderAlgCfg(flags,
138 name=
"ActsDetAlignmentAlgMM",
139 CondAlignStore=
"MmActsAlignContainer" if setCondDep
or \
140 flags.Muon.applyMMPassivation
else "",
141 EventAlignStore=
"MmActsAlignContainer",
142 SplitPhysVolCache =
False,
143 SplitActsTrfCache =
False,
144 FillAlignCache =
False,
145 DetectorType=DetectorType.Mm))