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

Functions

 MuonGeoUtilityToolCfg (flags, name="MuonGeoUtilityTool", **kwargs)
 MdtReadoutGeomToolCfg (flags, name="MdtReadoutGeomTool", **kwargs)
 RpcReadoutGeomToolCfg (flags, name="RpcReadoutGeomTool", **kwargs)
 TgcReadoutGeomToolCfg (flags, name="TgcReadoutGeomTool", **kwargs)
 sTgcReadoutGeomToolCfg (flags, name="sTgcReadoutGeomTool", **kwargs)
 MmReadoutGeomToolCfg (flags, name="MmReadoutGeomTool", **kwargs)
 ChamberAssebmbleToolCfg (flags, name="MuonChamberAssembleTool", **kwargs)
 MuonDetectorToolCfg (flags, name="MuonDetectorToolR4", **kwargs)
 ToroidGeoModelToolCfg (flags, **kwargs)
 MuonGeoModelCfg (flags)
 MuonAlignStoreCfg (flags)

Function Documentation

◆ ChamberAssebmbleToolCfg()

MuonGeoModelConfig.ChamberAssebmbleToolCfg ( flags,
name = "MuonChamberAssembleTool",
** kwargs )

Definition at line 45 of file MuonGeoModelConfig.py.

45def ChamberAssebmbleToolCfg(flags,name="MuonChamberAssembleTool", **kwargs):
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)
51 return result
52

◆ MdtReadoutGeomToolCfg()

MuonGeoModelConfig.MdtReadoutGeomToolCfg ( flags,
name = "MdtReadoutGeomTool",
** kwargs )

Definition at line 10 of file MuonGeoModelConfig.py.

10def MdtReadoutGeomToolCfg(flags, name="MdtReadoutGeomTool", **kwargs):
11 result = ComponentAccumulator()
12 kwargs.setdefault("GeoUtilTool", result.getPrimaryAndMerge(MuonGeoUtilityToolCfg(flags)))
13 the_tool = CompFactory.MuonGMR4.MdtReadoutGeomTool(name, **kwargs)
14 result.setPrivateTools(the_tool)
15 return result
16

◆ MmReadoutGeomToolCfg()

MuonGeoModelConfig.MmReadoutGeomToolCfg ( flags,
name = "MmReadoutGeomTool",
** kwargs )

Definition at line 38 of file MuonGeoModelConfig.py.

38def MmReadoutGeomToolCfg(flags, name="MmReadoutGeomTool", **kwargs):
39 result = ComponentAccumulator()
40 kwargs.setdefault("GeoUtilTool", result.getPrimaryAndMerge(MuonGeoUtilityToolCfg(flags)))
41 the_tool = CompFactory.MuonGMR4.MmReadoutGeomTool(name, **kwargs)
42 result.setPrivateTools(the_tool)
43 return result
44

◆ MuonAlignStoreCfg()

MuonGeoModelConfig.MuonAlignStoreCfg ( flags)

Definition at line 99 of file MuonGeoModelConfig.py.

99def MuonAlignStoreCfg(flags):
100 result = ComponentAccumulator()
101 if not flags.Muon.usePhaseIIGeoSetup: return result
102 from MuonCondAlgR4.ConditionsConfig import MuonGeoAlignCondAlgCfg
103 result.merge(MuonGeoAlignCondAlgCfg(flags))
104 from ActsAlignmentAlgs.AlignmentAlgsConfig import ActsAlignStoreProviderAlgCfg
105
106 from MuonG4TrfCache.MuonTrfCacheConfig import MuonTransformCacheCfg
107 result.merge(MuonTransformCacheCfg(flags))
108
109 setCondDep = flags.Muon.enableAlignment or flags.Sim.ReleaseGeoModel
110 from MuonConfig.MuonConfigFlags import GeoTrfCacheMode
111 from ROOT.ActsTrk import DetectorType
112 if flags.Detector.GeometryMDT:
113 result.merge(ActsAlignStoreProviderAlgCfg(flags,
114 name="MuonAlignStoreProviderMdt",
115 CondAlignStore="MdtActsAlignContainer" if setCondDep else "",
116 EventAlignStore="MdtActsAlignContainer",
117 SplitPhysVolCache = flags.Muon.AlignedGeoTrfCacheMode == GeoTrfCacheMode.SplitCache or
118 flags.Muon.AlignedGeoTrfCacheMode == GeoTrfCacheMode.SlopyCache,
119 SplitActsTrfCache = flags.Muon.AlignedGeoTrfCacheMode == GeoTrfCacheMode.SplitCache or
120 flags.Muon.AlignedGeoTrfCacheMode == GeoTrfCacheMode.ActsSplitALineCond,
121 FillAlignCache = False,
122 DetectorType=DetectorType.Mdt))
123 if flags.Detector.GeometryRPC:
124 result.merge(ActsAlignStoreProviderAlgCfg(flags,
125 name="MuonAlignStoreProviderRpc",
126 CondAlignStore="RpcActsAlignContainer" if setCondDep else "",
127 EventAlignStore="RpcActsAlignContainer",
128 SplitPhysVolCache = flags.Muon.AlignedGeoTrfCacheMode == GeoTrfCacheMode.SplitCache or
129 flags.Muon.AlignedGeoTrfCacheMode == GeoTrfCacheMode.SlopyCache,
130 SplitActsTrfCache = flags.Muon.AlignedGeoTrfCacheMode == GeoTrfCacheMode.SplitCache or
131 flags.Muon.AlignedGeoTrfCacheMode == GeoTrfCacheMode.ActsSplitALineCond,
132 FillAlignCache = False,
133 DetectorType=DetectorType.Rpc))
134 if flags.Detector.GeometryTGC:
135 result.merge(ActsAlignStoreProviderAlgCfg(flags,
136 name="MuonAlignStoreProviderTgc",
137 CondAlignStore="TgcActsAlignContainer" if setCondDep else "",
138 EventAlignStore="TgcActsAlignContainer",
139 SplitPhysVolCache = flags.Muon.AlignedGeoTrfCacheMode == GeoTrfCacheMode.SplitCache or
140 flags.Muon.AlignedGeoTrfCacheMode == GeoTrfCacheMode.SlopyCache,
141 SplitActsTrfCache = flags.Muon.AlignedGeoTrfCacheMode == GeoTrfCacheMode.SplitCache or
142 flags.Muon.AlignedGeoTrfCacheMode == GeoTrfCacheMode.ActsSplitALineCond,
143 FillAlignCache = False,
144 DetectorType=DetectorType.Tgc))
145 if flags.Detector.GeometrysTGC:
146 result.merge(ActsAlignStoreProviderAlgCfg(flags,
147 name="MuonAlignStoreProviderSTGC",
148 CondAlignStore="sTgcActsAlignContainer" if setCondDep else "",
149 EventAlignStore="sTgcActsAlignContainer",
150 SplitPhysVolCache = flags.Muon.AlignedGeoTrfCacheMode == GeoTrfCacheMode.SplitCache or
151 flags.Muon.AlignedGeoTrfCacheMode == GeoTrfCacheMode.SlopyCache,
152 SplitActsTrfCache = flags.Muon.AlignedGeoTrfCacheMode == GeoTrfCacheMode.SplitCache or
153 flags.Muon.AlignedGeoTrfCacheMode == GeoTrfCacheMode.ActsSplitALineCond,
154 FillAlignCache = False,
155 DetectorType=DetectorType.sTgc))
156
157 if flags.Detector.GeometryMM:
158 result.merge(ActsAlignStoreProviderAlgCfg(flags,
159 name="MuonAlignStoreProviderMM",
160 CondAlignStore="MmActsAlignContainer" if setCondDep or \
161 flags.Muon.applyMMPassivation else "",
162 EventAlignStore="MmActsAlignContainer",
163 SplitPhysVolCache = flags.Muon.AlignedGeoTrfCacheMode == GeoTrfCacheMode.SplitCache or
164 flags.Muon.AlignedGeoTrfCacheMode == GeoTrfCacheMode.SlopyCache,
165 SplitActsTrfCache = flags.Muon.AlignedGeoTrfCacheMode == GeoTrfCacheMode.SplitCache or
166 flags.Muon.AlignedGeoTrfCacheMode == GeoTrfCacheMode.ActsSplitALineCond,
167 FillAlignCache = False,
168 DetectorType=DetectorType.Mm))
169
170
171 return result
172

◆ MuonDetectorToolCfg()

MuonGeoModelConfig.MuonDetectorToolCfg ( flags,
name = "MuonDetectorToolR4",
** kwargs )

Definition at line 53 of file MuonGeoModelConfig.py.

53def MuonDetectorToolCfg(flags, name="MuonDetectorToolR4", **kwargs):
54 result = ComponentAccumulator()
55 sub_detTools = []
56 if flags.Detector.GeometryMDT:
57 sub_detTools.append(result.popToolsAndMerge(MdtReadoutGeomToolCfg(flags)))
58
59 if flags.Detector.GeometryRPC:
60 sub_detTools.append(result.popToolsAndMerge(RpcReadoutGeomToolCfg(flags)))
61
62 if flags.Detector.GeometryTGC:
63 sub_detTools.append(result.popToolsAndMerge(TgcReadoutGeomToolCfg(flags)))
64
65 if flags.Detector.GeometrysTGC:
66 sub_detTools.append(result.popToolsAndMerge(sTgcReadoutGeomToolCfg(flags)))
67
68 if flags.Detector.GeometryMM:
69 sub_detTools.append(result.popToolsAndMerge(MmReadoutGeomToolCfg(flags)))
70
71 from AthenaConfiguration.Enums import ProductionStep
72 if flags.Common.ProductionStep is not ProductionStep.Simulation:
73 sub_detTools.append(result.popToolsAndMerge(ChamberAssebmbleToolCfg(flags)))
74
75 kwargs.setdefault("ReadoutEleBuilders", sub_detTools)
76 the_tool = CompFactory.MuonGMR4.MuonDetectorTool(name = name, **kwargs)
77 result.setPrivateTools(the_tool)
78 return result
79

◆ MuonGeoModelCfg()

MuonGeoModelConfig.MuonGeoModelCfg ( flags)

Definition at line 92 of file MuonGeoModelConfig.py.

92def MuonGeoModelCfg(flags):
93 result = ComponentAccumulator()
94 from AtlasGeoModel.GeoModelConfig import GeoModelCfg
95 geoModelSvc = result.getPrimaryAndMerge(GeoModelCfg(flags))
96 geoModelSvc.DetectorTools+=[result.popToolsAndMerge(MuonDetectorToolCfg(flags))]
97 return result
98

◆ MuonGeoUtilityToolCfg()

MuonGeoModelConfig.MuonGeoUtilityToolCfg ( flags,
name = "MuonGeoUtilityTool",
** kwargs )

Definition at line 5 of file MuonGeoModelConfig.py.

5def MuonGeoUtilityToolCfg(flags, name = "MuonGeoUtilityTool", **kwargs):
6 result = ComponentAccumulator()
7 the_tool = CompFactory.MuonGMR4.MuonGeoUtilityTool(name, **kwargs)
8 result.addPublicTool(the_tool, primary = True)
9 return result

◆ RpcReadoutGeomToolCfg()

MuonGeoModelConfig.RpcReadoutGeomToolCfg ( flags,
name = "RpcReadoutGeomTool",
** kwargs )

Definition at line 17 of file MuonGeoModelConfig.py.

17def RpcReadoutGeomToolCfg(flags, name="RpcReadoutGeomTool", **kwargs):
18 result = ComponentAccumulator()
19 kwargs.setdefault("GeoUtilTool", result.getPrimaryAndMerge(MuonGeoUtilityToolCfg(flags)))
20 the_tool = CompFactory.MuonGMR4.RpcReadoutGeomTool(name, **kwargs)
21 result.setPrivateTools(the_tool)
22 return result
23

◆ sTgcReadoutGeomToolCfg()

MuonGeoModelConfig.sTgcReadoutGeomToolCfg ( flags,
name = "sTgcReadoutGeomTool",
** kwargs )

Definition at line 31 of file MuonGeoModelConfig.py.

31def sTgcReadoutGeomToolCfg(flags, name="sTgcReadoutGeomTool", **kwargs):
32 result = ComponentAccumulator()
33 kwargs.setdefault("GeoUtilTool", result.getPrimaryAndMerge(MuonGeoUtilityToolCfg(flags)))
34 the_tool = CompFactory.MuonGMR4.sTgcReadoutGeomTool(name, **kwargs)
35 result.setPrivateTools(the_tool)
36 return result
37

◆ TgcReadoutGeomToolCfg()

MuonGeoModelConfig.TgcReadoutGeomToolCfg ( flags,
name = "TgcReadoutGeomTool",
** kwargs )

Definition at line 24 of file MuonGeoModelConfig.py.

24def TgcReadoutGeomToolCfg(flags, name="TgcReadoutGeomTool", **kwargs):
25 result = ComponentAccumulator()
26 kwargs.setdefault("GeoUtilTool", result.getPrimaryAndMerge(MuonGeoUtilityToolCfg(flags)))
27 the_tool = CompFactory.MuonGMR4.TgcReadoutGeomTool(name, **kwargs)
28 result.setPrivateTools(the_tool)
29 return result
30

◆ ToroidGeoModelToolCfg()

MuonGeoModelConfig.ToroidGeoModelToolCfg ( flags,
** kwargs )

Definition at line 80 of file MuonGeoModelConfig.py.

80def ToroidGeoModelToolCfg(flags, **kwargs):
81 result = ComponentAccumulator()
82 if not flags.Detector.SpecialGeometryToroid:
83 return result
84 from AtlasGeoModel.GeoModelConfig import GeoModelCfg
85 geoModelSvc = result.getPrimaryAndMerge(GeoModelCfg(flags))
86
87 kwargs.setdefault("TreeTops", ["Toroid"])
88 the_tool = CompFactory.MuonGMR4.ToroidDetectorTool(name="ToroidDetectorTool", **kwargs)
89 geoModelSvc.DetectorTools+=[the_tool]
90 return result
91