ATLAS Offline Software
Functions
MuonGeoModelConfig Namespace Reference

Functions

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

Function Documentation

◆ ChamberAssebmbleToolCfg()

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

Definition at line 45 of file MuonGeoModelConfig.py.

45 def ChamberAssebmbleToolCfg(flags,name="MuonChamberAssembleTool", **kwargs):
46  result = ComponentAccumulator()
47  kwargs.setdefault("GeoUtilTool", result.getPrimaryAndMerge(MuonGeoUtilityToolCfg(flags)))
48  the_tool = CompFactory.MuonGMR4.ChamberAssembleTool(name, **kwargs)
49  result.setPrivateTools(the_tool)
50  return result

◆ MdtReadoutGeomToolCfg()

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

Definition at line 10 of file MuonGeoModelConfig.py.

10 def 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()

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

Definition at line 38 of file MuonGeoModelConfig.py.

38 def 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()

def MuonGeoModelConfig.MuonAlignStoreCfg (   flags)

Definition at line 84 of file MuonGeoModelConfig.py.

84 def MuonAlignStoreCfg(flags):
85  result = ComponentAccumulator()
86  if not flags.Muon.usePhaseIIGeoSetup: return result
87  from MuonCondAlgR4.ConditionsConfig import ActsMuonAlignCondAlgCfg
88  result.merge(ActsMuonAlignCondAlgCfg(flags))
89  from ActsAlignmentAlgs.AlignmentAlgsConfig import ActsAlignStoreProviderAlgCfg
90 
91  from ROOT.ActsTrk import DetectorType
92 
93  if flags.Detector.GeometryMDT:
94  result.merge(ActsAlignStoreProviderAlgCfg(flags,
95  name="ActsDetAlignmentAlgMdt",
96  CondAlignStore="MdtActsAlignContainer" if flags.Muon.enableAlignment else "",
97  EventAlignStore="MdtActsAlignContainer",
98  SplitPhysVolCache = False,
99  SplitActsTrfCache = False,
100  FillAlignCache = False,
101  LoadTrackingGeoSvc = False,
102  DetectorType=DetectorType.Mdt))
103  if flags.Detector.GeometryRPC:
104  result.merge(ActsAlignStoreProviderAlgCfg(flags,
105  name="ActsDetAlignmentAlgRpc",
106  CondAlignStore="RpcActsAlignContainer" if flags.Muon.enableAlignment else "",
107  EventAlignStore="RpcActsAlignContainer",
108  SplitPhysVolCache = False,
109  SplitActsTrfCache = False,
110  FillAlignCache = False,
111  LoadTrackingGeoSvc = False,
112  DetectorType=DetectorType.Rpc))
113  if flags.Detector.GeometryTGC:
114  result.merge(ActsAlignStoreProviderAlgCfg(flags,
115  name="ActsDetAlignmentAlgTgc",
116  CondAlignStore="TgcActsAlignContainer" if flags.Muon.enableAlignment else "",
117  EventAlignStore="TgcActsAlignContainer",
118  SplitPhysVolCache = False,
119  SplitActsTrfCache = False,
120  FillAlignCache = False,
121  LoadTrackingGeoSvc = False,
122  DetectorType=DetectorType.Tgc))
123  if flags.Detector.GeometrysTGC:
124  result.merge(ActsAlignStoreProviderAlgCfg(flags,
125  name="ActsDetAlignmentAlgSTGC",
126  CondAlignStore="sTgcActsAlignContainer" if flags.Muon.enableAlignment else "",
127  EventAlignStore="sTgcActsAlignContainer",
128  SplitPhysVolCache = False,
129  SplitActsTrfCache = False,
130  FillAlignCache = False,
131  LoadTrackingGeoSvc = False,
132  DetectorType=DetectorType.sTgc))
133 
134  if flags.Detector.GeometryMM:
135  result.merge(ActsAlignStoreProviderAlgCfg(flags,
136  name="ActsDetAlignmentAlgMM",
137  CondAlignStore="MmActsAlignContainer" if flags.Muon.enableAlignment or \
138  flags.Muon.applyMMPassivation else "",
139  EventAlignStore="MmActsAlignContainer",
140  SplitPhysVolCache = False,
141  SplitActsTrfCache = False,
142  FillAlignCache = False,
143  LoadTrackingGeoSvc = False,
144  DetectorType=DetectorType.Mm))
145 
146 
147  return result
148 

◆ MuonDetectorToolCfg()

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

Definition at line 51 of file MuonGeoModelConfig.py.

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

◆ MuonGeoModelCfg()

def MuonGeoModelConfig.MuonGeoModelCfg (   flags)

Definition at line 77 of file MuonGeoModelConfig.py.

77 def MuonGeoModelCfg(flags):
78  result = ComponentAccumulator()
79  from AtlasGeoModel.GeoModelConfig import GeoModelCfg
80  geoModelSvc = result.getPrimaryAndMerge(GeoModelCfg(flags))
81  geoModelSvc.DetectorTools+=[result.popToolsAndMerge(MuonDetectorToolCfg(flags))]
82  return result
83 

◆ MuonGeoUtilityToolCfg()

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

Definition at line 5 of file MuonGeoModelConfig.py.

5 def 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()

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

Definition at line 17 of file MuonGeoModelConfig.py.

17 def 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()

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

Definition at line 31 of file MuonGeoModelConfig.py.

31 def 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()

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

Definition at line 24 of file MuonGeoModelConfig.py.

24 def 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 
ConditionsConfig.ActsMuonAlignCondAlgCfg
def ActsMuonAlignCondAlgCfg(flags, name="ActsMuonAlignCondAlg", **kwargs)
Definition: ConditionsConfig.py:5
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
MuonGeoModelConfig.MuonAlignStoreCfg
def MuonAlignStoreCfg(flags)
Definition: MuonGeoModelConfig.py:84
MuonGeoModelConfig.MuonGeoUtilityToolCfg
def MuonGeoUtilityToolCfg(flags, name="MuonGeoUtilityTool", **kwargs)
Definition: MuonGeoModelConfig.py:5
MuonGeoModelConfig.ChamberAssebmbleToolCfg
def ChamberAssebmbleToolCfg(flags, name="MuonChamberAssembleTool", **kwargs)
Definition: MuonGeoModelConfig.py:45
MuonGeoModelConfig.MmReadoutGeomToolCfg
def MmReadoutGeomToolCfg(flags, name="MmReadoutGeomTool", **kwargs)
Definition: MuonGeoModelConfig.py:38
MuonGeoModelConfig.sTgcReadoutGeomToolCfg
def sTgcReadoutGeomToolCfg(flags, name="sTgcReadoutGeomTool", **kwargs)
Definition: MuonGeoModelConfig.py:31
MuonGeoModelConfig.TgcReadoutGeomToolCfg
def TgcReadoutGeomToolCfg(flags, name="TgcReadoutGeomTool", **kwargs)
Definition: MuonGeoModelConfig.py:24
MuonGeoModelConfig.MdtReadoutGeomToolCfg
def MdtReadoutGeomToolCfg(flags, name="MdtReadoutGeomTool", **kwargs)
Definition: MuonGeoModelConfig.py:10
AlignmentAlgsConfig.ActsAlignStoreProviderAlgCfg
def ActsAlignStoreProviderAlgCfg(flags, name="AlignStoreProviderAlg", **kwargs)
Definition: AlignmentAlgsConfig.py:7
MuonGeoModelConfig.RpcReadoutGeomToolCfg
def RpcReadoutGeomToolCfg(flags, name="RpcReadoutGeomTool", **kwargs)
Definition: MuonGeoModelConfig.py:17
MuonGeoModelConfig.MuonGeoModelCfg
def MuonGeoModelCfg(flags)
Definition: MuonGeoModelConfig.py:77
MuonGeoModelConfig.MuonDetectorToolCfg
def MuonDetectorToolCfg(flags, name="MuonDetectorToolR4", **kwargs)
Definition: MuonGeoModelConfig.py:51
python.GeoModelConfig.GeoModelCfg
def GeoModelCfg(flags)
Definition: GeoModelConfig.py:16