ATLAS Offline Software
Functions
InDetTrackingGeometryConfig Namespace Reference

Functions

def BeamPipeBuilderCfg (flags, name='BeamPipeBuilder', useCond=True, **kwargs)
 
def ITkBeamPipeBuilderCfg (flags, name='ITkBeamPipeBuilder', useCond=True, **kwargs)
 
def PixelLayerBuilderCfg (flags, name='PixelLayerBuilder', useCond=True, **kwargs)
 
def ITkPixelLayerBuilderCfg (flags, name='ITkPixelLayerBuilder', useCond=True, **kwargs)
 
def ITkPixelLayerBuilderInnerCfg (flags, name='ITkPixelLayerBuilderInner', useCond=True, **kwargs)
 
def ITkPixelLayerBuilderOuterCfg (flags, name='ITkPixelLayerBuilderOuter', useCond=True, **kwargs)
 
def SCT_LayerBuilderCfg (flags, name='SCT_LayerBuilder', useCond=True, **kwargs)
 
def ITkStripLayerBuilderCfg (flags, name='ITkStripLayerBuilder', useCond=True, **kwargs)
 
def TRT_LayerBuilderCfg (flags, name='TRT_LayerBuilder', useCond=True, **kwargs)
 
def InDetTrackingGeometryBuilderCfg (flags, name='InDetTrackingGeometryBuilder', useCond=True, **kwargs)
 
def ITkTrackingGeometryBuilderCfg (flags, name='ITkTrackingGeometryBuilder', useCond=True, **kwargs)
 

Function Documentation

◆ BeamPipeBuilderCfg()

def InDetTrackingGeometryConfig.BeamPipeBuilderCfg (   flags,
  name = 'BeamPipeBuilder',
  useCond = True,
**  kwargs 
)

Definition at line 8 of file InDetTrackingGeometryConfig.py.

8 def BeamPipeBuilderCfg(flags, name='BeamPipeBuilder', useCond=True, **kwargs):
9  from BeamPipeGeoModel.BeamPipeGMConfig import BeamPipeGeometryCfg
10  result = BeamPipeGeometryCfg(flags)
11 
12  if useCond:
13  name = name+'Cond'
14  beamPipeBuilder = CompFactory.InDet.BeamPipeBuilderCond(name, **kwargs) \
15  if useCond else \
16  CompFactory.InDet.BeamPipeBuilder(name, **kwargs)
17 
18  result.setPrivateTools(beamPipeBuilder)
19  return result
20 

◆ InDetTrackingGeometryBuilderCfg()

def InDetTrackingGeometryConfig.InDetTrackingGeometryBuilderCfg (   flags,
  name = 'InDetTrackingGeometryBuilder',
  useCond = True,
**  kwargs 
)

Definition at line 220 of file InDetTrackingGeometryConfig.py.

220 def InDetTrackingGeometryBuilderCfg(flags, name='InDetTrackingGeometryBuilder',
221  useCond=True,
222  **kwargs):
223  result = ComponentAccumulator()
224 
225  # beampipe
226  beamPipeBuilder = result.popToolsAndMerge(
227  BeamPipeBuilderCfg(flags, useCond = useCond))
228  result.addPublicTool(beamPipeBuilder)
229 
230  layerbuilders = []
231  binnings = []
232  colors = []
233 
234  # Material due to InDet services
235  if (useCond and flags.Detector.GeometryID):
236  from InDetServMatGeoModel.InDetServMatGeoModelConfig import (
237  InDetServiceMaterialCfg)
238  result.merge(InDetServiceMaterialCfg(flags))
239 
240  # Pixel
241  if flags.Detector.GeometryPixel:
242  pixelLayerBuilder = result.popToolsAndMerge(
243  PixelLayerBuilderCfg(flags, useCond = useCond))
244  result.addPublicTool(pixelLayerBuilder)
245 
246  # the binning type of the layers
247  pixelLayerBinning = 2
248 
249  # put them to the caches
250  layerbuilders += [pixelLayerBuilder]
251  binnings += [pixelLayerBinning]
252  colors += [3]
253 
254  if flags.Detector.GeometrySCT:
255  # SCT building
256  SCT_LayerBuilder = result.popToolsAndMerge(
257  SCT_LayerBuilderCfg(flags, useCond = useCond))
258  result.addPublicTool(SCT_LayerBuilder)
259 
260  # the binning type of the layer
261  SCT_LayerBinning = 2
262 
263  # put them to the caches
264  layerbuilders += [SCT_LayerBuilder]
265  binnings += [SCT_LayerBinning]
266  colors += [4]
267 
268  if flags.Detector.GeometryTRT:
269  TRT_LayerBuilder = result.popToolsAndMerge(
270  TRT_LayerBuilderCfg(flags, useCond = useCond))
271 
272  # The RobustTrackingGeometryBuilderCond expects a public tool
273  # but for some unknown reason, this creates a crash
274  result.addPublicTool(TRT_LayerBuilder)
275 
276  # set the binning from bi-aequidistant to arbitrary for complex TRT
277  # volumes
278  TRT_LayerBinning = 1
279  useFatras = flags.Common.ProductionStep in \
280  [ProductionStep.Simulation, ProductionStep.FastChain] \
281  and flags.Sim.ISF.Simulator.usesFatras()
282  if (flags.Beam.Type is BeamType.Cosmics or useFatras):
283  TRT_LayerBinning = 2
284 
285  # put them to the caches
286  layerbuilders += [TRT_LayerBuilder]
287  binnings += [TRT_LayerBinning]
288  colors += [5]
289 
290  # The following public sub-tools of the cylinder volume creator are only
291  # configured here to rename them consistently with the legacy config to
292  # avoid conflict with CA wrapping
293  # Those configs can be removed once the support for legacy config is dropped
294  nameSuffix = 'Cond' if useCond else ''
295 
296  # helpers for the InDetTrackingGeometry Builder : layer array creator
297  from TrackingGeometryCondAlg.TrkDetDescrToolsConfig import (
298  LayerArrayCreatorCfg)
299  layerArrayCreator = result.popToolsAndMerge(
300  LayerArrayCreatorCfg(flags, name='InDetLayerArrayCreator' + nameSuffix))
301  result.addPublicTool(layerArrayCreator)
302 
303  # helpers for the InDetTrackingGeometry Builder : tracking volume helper
304  from TrackingGeometryCondAlg.TrkDetDescrToolsConfig import (
305  InDetTrackingVolumeHelperCfg)
306  trackingVolumeHelper = result.popToolsAndMerge(
307  InDetTrackingVolumeHelperCfg(flags, name='InDetTrackingVolumeHelper' + \
308  nameSuffix))
309  result.addPublicTool(trackingVolumeHelper)
310 
311  # helpers for the InDetTrackingGeometry Builder : tracking volume array creator
312  from TrackingGeometryCondAlg.TrkDetDescrToolsConfig import (
313  TrackingVolumeArrayCreatorCfg)
314  trackingVolumeArrayCreator = result.popToolsAndMerge(
316  name='InDetTrackingVolumeArrayCreator' + \
317  nameSuffix))
318  result.addPublicTool(trackingVolumeArrayCreator)
319 
320  # helpers for the InDetTrackingGeometry Builder : cylinder volume creator
321  from TrackingGeometryCondAlg.TrkDetDescrToolsConfig import (
322  InDetCylinderVolumeCreatorCfg)
323  inDetCylinderVolumeCreator = result.popToolsAndMerge(
324  InDetCylinderVolumeCreatorCfg(flags, name='InDetCylinderVolumeCreator' \
325  + nameSuffix,
326  LayerArrayCreator = layerArrayCreator,
327  TrackingVolumeHelper = trackingVolumeHelper,
328  TrackingVolumeArrayCreator = trackingVolumeArrayCreator))
329  result.addPublicTool(inDetCylinderVolumeCreator)
330 
331  from SubDetectorEnvelopes.SubDetectorEnvelopesConfig import (
332  EnvelopeDefSvcCfg)
333  envelopeDefinitionSvc = result.getPrimaryAndMerge(EnvelopeDefSvcCfg(flags))
334 
335  kwargs.setdefault("BeamPipeBuilder", beamPipeBuilder)
336  kwargs.setdefault("LayerBuilders", layerbuilders)
337  kwargs.setdefault("LayerBinningType", binnings)
338  kwargs.setdefault("ColorCodes", colors)
339  kwargs.setdefault("EnvelopeDefinitionSvc", envelopeDefinitionSvc)
340  kwargs.setdefault("VolumeEnclosureDiscPositions", [3000., 3450.])
341  kwargs.setdefault("TrackingVolumeCreator", inDetCylinderVolumeCreator)
342  kwargs.setdefault("LayerArrayCreator", layerArrayCreator)
343  kwargs.setdefault("ReplaceAllJointBoundaries", True)
344  kwargs.setdefault("VolumeEnclosureCylinderRadii", [])
345  kwargs.setdefault("BuildBoundaryLayers", True)
346  kwargs.setdefault("ExitVolumeName", 'InDet::Containers::InnerDetector')
347 
348  # the tracking geometry builder
349  if useCond:
350  name = name + 'Cond'
351  geometryBuilder = CompFactory.InDet.RobustTrackingGeometryBuilderCond(name, **kwargs) if useCond else \
352  CompFactory.InDet.RobustTrackingGeometryBuilder(name, **kwargs)
353  result.setPrivateTools(geometryBuilder)
354  return result
355 

◆ ITkBeamPipeBuilderCfg()

def InDetTrackingGeometryConfig.ITkBeamPipeBuilderCfg (   flags,
  name = 'ITkBeamPipeBuilder',
  useCond = True,
**  kwargs 
)

Definition at line 21 of file InDetTrackingGeometryConfig.py.

21 def ITkBeamPipeBuilderCfg(flags, name='ITkBeamPipeBuilder',
22  useCond=True,
23  **kwargs):
24  kwargs.setdefault("BeamPipeMaterialBinsZ",
25  flags.ITk.trackingGeometry.beampipeMatZbins)
26  return BeamPipeBuilderCfg(flags, name, useCond, **kwargs)
27 

◆ ITkPixelLayerBuilderCfg()

def InDetTrackingGeometryConfig.ITkPixelLayerBuilderCfg (   flags,
  name = 'ITkPixelLayerBuilder',
  useCond = True,
**  kwargs 
)

Definition at line 64 of file InDetTrackingGeometryConfig.py.

64 def ITkPixelLayerBuilderCfg(flags, name='ITkPixelLayerBuilder',
65  useCond=True,
66  **kwargs):
67  # for Pixel DetectorElement conditions data:
68  if flags.Common.ProductionStep != ProductionStep.Simulation: # Not needed by FATRAS
69  from PixelGeoModelXml.ITkPixelGeoModelConfig import (
70  ITkPixelReadoutGeometryCfg)
71  result = ITkPixelReadoutGeometryCfg(flags)
72  else:
73  from PixelGeoModelXml.ITkPixelGeoModelConfig import (
74  ITkPixelSimulationGeometryCfg)
75  result = ITkPixelSimulationGeometryCfg(flags)
76 
77  kwargs.setdefault("PixelCase", True)
78  kwargs.setdefault("SiDetManagerLocation", 'ITkPixel')
79  kwargs.setdefault("PixelReadKey", 'ITkPixelDetectorElementCollection')
80  kwargs.setdefault("SCT_ReadKey", 'ITkStripDetectorElementCollection')
81  kwargs.setdefault("UseRingLayout", True)
82  # Pixel barrel specifications
83  kwargs.setdefault("BarrelLayerBinsZ",
84  flags.ITk.trackingGeometry.pixelBarrelMatZbins)
85  kwargs.setdefault("BarrelLayerBinsPhi",
86  flags.ITk.trackingGeometry.pixelBarrelMatPhiBins)
87  kwargs.setdefault("EndcapLayerBinsR",
88  flags.ITk.trackingGeometry.pixelEndcapMatRbins)
89  kwargs.setdefault("EndcapLayerBinsPhi",
90  flags.ITk.trackingGeometry.pixelEndcapMatPhiBins)
91  kwargs.setdefault("SetLayerAssociation", True)
92 
93  if useCond:
94  name = name+'Cond'
95  pixelLayerBuilder = CompFactory.InDet.SiLayerBuilderCond(name, **kwargs) \
96  if useCond else \
97  CompFactory.InDet.SiLayerBuilder(name, **kwargs)
98  result.setPrivateTools(pixelLayerBuilder)
99  return result
100 

◆ ITkPixelLayerBuilderInnerCfg()

def InDetTrackingGeometryConfig.ITkPixelLayerBuilderInnerCfg (   flags,
  name = 'ITkPixelLayerBuilderInner',
  useCond = True,
**  kwargs 
)

Definition at line 101 of file InDetTrackingGeometryConfig.py.

101 def ITkPixelLayerBuilderInnerCfg(flags, name='ITkPixelLayerBuilderInner',
102  useCond=True,
103  **kwargs):
104  kwargs.setdefault("Identification", 'ITkPixelInner')
105  kwargs.setdefault("LayerIndicesBarrel", [0, 1])
106  kwargs.setdefault("LayerIndicesEndcap", [0, 1, 2])
107  # adding one passive layer to map PLR material
108  kwargs.setdefault("EndcapAdditionalLayerPositionsZ", [-2250., 2250.])
109  kwargs.setdefault("EndcapAdditionalLayerType", [1, 1])
110  return ITkPixelLayerBuilderCfg(flags, name, useCond, **kwargs)
111 

◆ ITkPixelLayerBuilderOuterCfg()

def InDetTrackingGeometryConfig.ITkPixelLayerBuilderOuterCfg (   flags,
  name = 'ITkPixelLayerBuilderOuter',
  useCond = True,
**  kwargs 
)

Definition at line 112 of file InDetTrackingGeometryConfig.py.

112 def ITkPixelLayerBuilderOuterCfg(flags, name='ITkPixelLayerBuilderOuter',
113  useCond=True,
114  **kwargs):
115  kwargs.setdefault("Identification", 'ITkPixelOuter')
116  kwargs.setdefault("EndcapEnvelope", 25.)
117  kwargs.setdefault("LayerIndicesBarrel", [2, 3, 4])
118  kwargs.setdefault("LayerIndicesEndcap", [3, 4, 5, 6, 7, 8])
119  return ITkPixelLayerBuilderCfg(flags, name, useCond, **kwargs)
120 

◆ ITkStripLayerBuilderCfg()

def InDetTrackingGeometryConfig.ITkStripLayerBuilderCfg (   flags,
  name = 'ITkStripLayerBuilder',
  useCond = True,
**  kwargs 
)

Definition at line 155 of file InDetTrackingGeometryConfig.py.

155 def ITkStripLayerBuilderCfg(flags, name='ITkStripLayerBuilder',
156  useCond=True,
157  **kwargs):
158  if flags.Common.ProductionStep != ProductionStep.Simulation: # Not needed by FATRAS
159  from StripGeoModelXml.ITkStripGeoModelConfig import (
160  ITkStripReadoutGeometryCfg)
161  result = ITkStripReadoutGeometryCfg(flags)
162  else:
163  from StripGeoModelXml.ITkStripGeoModelConfig import (
164  ITkStripSimulationGeometryCfg)
165  result = ITkStripSimulationGeometryCfg(flags)
166 
167  kwargs.setdefault("PixelCase", False)
168  kwargs.setdefault("Identification", 'ITkStrip')
169  kwargs.setdefault("SiDetManagerLocation", 'ITkStrip')
170  kwargs.setdefault("PixelReadKey", 'ITkPixelDetectorElementCollection')
171  kwargs.setdefault("SCT_ReadKey", 'ITkStripDetectorElementCollection')
172  kwargs.setdefault("AddMoreSurfaces", True)
173  # additionall layers - handle with care !
174  kwargs.setdefault("BarrelLayerBinsZ",
175  flags.ITk.trackingGeometry.stripBarrelMatZbins)
176  kwargs.setdefault("BarrelLayerBinsPhi",
177  flags.ITk.trackingGeometry.stripBarrelMatPhiBins)
178  kwargs.setdefault("EndcapLayerBinsR",
179  flags.ITk.trackingGeometry.stripEndcapMatRbins)
180  kwargs.setdefault("EndcapLayerBinsPhi",
181  flags.ITk.trackingGeometry.stripEndcapMatPhiBins)
182  kwargs.setdefault("SetLayerAssociation", True)
183 
184  if useCond:
185  name = name+'Cond'
186  stripLayerBuilder = CompFactory.InDet.SiLayerBuilderCond(name, **kwargs) \
187  if useCond else \
188  CompFactory.InDet.SiLayerBuilder(name, **kwargs)
189  result.setPrivateTools(stripLayerBuilder)
190  return result
191 

◆ ITkTrackingGeometryBuilderCfg()

def InDetTrackingGeometryConfig.ITkTrackingGeometryBuilderCfg (   flags,
  name = 'ITkTrackingGeometryBuilder',
  useCond = True,
**  kwargs 
)

Definition at line 356 of file InDetTrackingGeometryConfig.py.

356 def ITkTrackingGeometryBuilderCfg(flags, name='ITkTrackingGeometryBuilder',
357  useCond = True,
358  **kwargs):
359  result = ComponentAccumulator()
360 
361  # beampipe
362  from TrackingGeometryCondAlg.TrkDetDescrToolsConfig import (
363  ITkBeamPipeProviderCfg)
364  beamPipeProvider = result.popToolsAndMerge(
365  ITkBeamPipeProviderCfg(flags, useCond = useCond))
366  result.addPublicTool(beamPipeProvider)
367 
368  beamPipeBinning = 2
369 
370  layerProviders = [beamPipeProvider]
371  binnings_barrel = [beamPipeBinning]
372  binnings_endcap = [beamPipeBinning]
373  colors = [2]
374 
375  # Pixel
376  if flags.Detector.GeometryITkPixel:
377  from TrackingGeometryCondAlg.TrkDetDescrToolsConfig import (
378  ITkPixelLayerProviderInnerCfg)
379  pixelProviderInner = result.popToolsAndMerge(
380  ITkPixelLayerProviderInnerCfg(flags, useCond = useCond))
381  result.addPublicTool(pixelProviderInner)
382 
383  # the binning type of the layers
384  pixelLayerBinning = 2
385 
386  # put them to the caches
387  layerProviders += [pixelProviderInner]
388  binnings_barrel += [pixelLayerBinning]
389  binnings_endcap += [pixelLayerBinning]
390  colors += [3]
391 
392  from TrackingGeometryCondAlg.TrkDetDescrToolsConfig import (
393  ITkPixelLayerProviderOuterCfg)
394  pixelProviderOuter = result.popToolsAndMerge(
395  ITkPixelLayerProviderOuterCfg(flags, useCond = useCond))
396  result.addPublicTool(pixelProviderOuter)
397 
398  # the binning type of the layers
399  pixelLayerBinning = 2
400 
401  # put them to the caches
402  layerProviders += [pixelProviderOuter]
403  binnings_barrel += [pixelLayerBinning]
404  binnings_endcap += [pixelLayerBinning]
405  colors += [3]
406 
407  if flags.Detector.GeometryITkStrip:
408  from TrackingGeometryCondAlg.TrkDetDescrToolsConfig import (
409  ITkStripLayerProviderCfg)
410  stripProvider = result.popToolsAndMerge(
411  ITkStripLayerProviderCfg(flags, useCond = useCond))
412  result.addPublicTool(stripProvider)
413 
414  # the binning type of the layer
415  stripLayerBinning = 2
416 
417  # put them to the caches
418  layerProviders += [stripProvider]
419  binnings_barrel += [stripLayerBinning]
420  binnings_endcap += [stripLayerBinning]
421  colors += [4]
422 
423  # helpers for the InDetTrackingGeometry Builder : layer array creator
424  from TrackingGeometryCondAlg.TrkDetDescrToolsConfig import (
425  LayerArrayCreatorCfg)
426  layerArrayCreator = result.popToolsAndMerge(
427  LayerArrayCreatorCfg(flags))
428  result.addPublicTool(layerArrayCreator)
429 
430  # helpers for the InDetTrackingGeometry Builder : cylinder volume creator
431  from TrackingGeometryCondAlg.TrkDetDescrToolsConfig import (
432  ITkCylinderVolumeCreatorCfg)
433  cylinderVolumeCreator = result.popToolsAndMerge(
435  result.addPublicTool(cylinderVolumeCreator)
436 
437  from SubDetectorEnvelopes.SubDetectorEnvelopesConfig import EnvelopeDefSvcCfg
438  envelopeDefinitionSvc = result.getPrimaryAndMerge(EnvelopeDefSvcCfg(flags))
439 
440  kwargs.setdefault("LayerBuilders", layerProviders)
441  kwargs.setdefault("LayerBinningTypeCenter", binnings_barrel)
442  kwargs.setdefault("LayerBinningTypeEndcap", binnings_endcap)
443  kwargs.setdefault("ColorCodes", colors)
444  kwargs.setdefault("EnvelopeDefinitionSvc", envelopeDefinitionSvc)
445  kwargs.setdefault("TrackingVolumeCreator", cylinderVolumeCreator)
446  kwargs.setdefault("LayerArrayCreator", layerArrayCreator)
447  kwargs.setdefault("CheckForRingLayout", True)
448  kwargs.setdefault("MinimalRadialGapForVolumeSplit",
449  flags.ITk.trackingGeometry.minimalRadialGapForVolumeSplit)
450  kwargs.setdefault("ReplaceAllJointBoundaries", True)
451  kwargs.setdefault("BuildBoundaryLayers", True)
452  kwargs.setdefault("ExitVolumeName", 'InDet::Containers::InnerDetector')
453  kwargs.setdefault("RemoveHGTD", True)
454  kwargs.setdefault("ZminHGTD", 3420.)
455 
456  if useCond:
457  name = name + 'Cond'
458  GeometryBuilder = CompFactory.InDet.StagedTrackingGeometryBuilderCond(name, **kwargs) if useCond else \
459  CompFactory.InDet.StagedTrackingGeometryBuilder(name, **kwargs)
460  result.setPrivateTools(GeometryBuilder)
461  return result

◆ PixelLayerBuilderCfg()

def InDetTrackingGeometryConfig.PixelLayerBuilderCfg (   flags,
  name = 'PixelLayerBuilder',
  useCond = True,
**  kwargs 
)

Definition at line 28 of file InDetTrackingGeometryConfig.py.

28 def PixelLayerBuilderCfg(flags, name='PixelLayerBuilder',
29  useCond=True,
30  **kwargs):
31  # for Pixel DetectorElement conditions data:
32  if flags.Common.ProductionStep != ProductionStep.Simulation: # Not needed by FATRAS
33  from PixelGeoModel.PixelGeoModelConfig import PixelReadoutGeometryCfg
34  result = PixelReadoutGeometryCfg(flags)
35  else:
36  from PixelGeoModel.PixelGeoModelConfig import PixelSimulationGeometryCfg
37  result = PixelSimulationGeometryCfg(flags)
38 
39  kwargs.setdefault("PixelCase", True)
40  kwargs.setdefault("Identification", 'Pixel')
41  kwargs.setdefault("SiDetManagerLocation", 'Pixel')
42  # additional layers - handle with care !
43  kwargs.setdefault("BarrelAdditionalLayerRadii", [130.0]) # The PST
44  kwargs.setdefault("BarrelAdditionalLayerType", [0]) # -- will shift volume boundary to PST
45  # DBM
46  kwargs.setdefault("EndcapAdditionalLayerPositionsZ", [-1900., 1900.])
47  kwargs.setdefault("EndcapAdditionalLayerType", [1, 1]) # DBM
48  # Pixel barrel specifications
49  kwargs.setdefault("BarrelLayerBinsZ", 1)
50  kwargs.setdefault("BarrelLayerBinsPhi", 1)
51  kwargs.setdefault("EndcapLayerBinsR", 1)
52  kwargs.setdefault("EndcapLayerBinsPhi", 1)
53  kwargs.setdefault("SetLayerAssociation", True)
54  kwargs.setdefault("BarrelEnvelope", 0.0)
55 
56  if useCond:
57  name = name+'Cond'
58  pixelLayerBuilder = CompFactory.InDet.SiLayerBuilderCond(name, **kwargs) \
59  if useCond else \
60  CompFactory.InDet.SiLayerBuilder(name, **kwargs)
61  result.setPrivateTools(pixelLayerBuilder)
62  return result
63 

◆ SCT_LayerBuilderCfg()

def InDetTrackingGeometryConfig.SCT_LayerBuilderCfg (   flags,
  name = 'SCT_LayerBuilder',
  useCond = True,
**  kwargs 
)

Definition at line 121 of file InDetTrackingGeometryConfig.py.

121 def SCT_LayerBuilderCfg(flags, name='SCT_LayerBuilder', useCond=True, **kwargs):
122  # for SCT DetectorElement conditions data:
123  if flags.Common.ProductionStep != ProductionStep.Simulation: # Not needed by FATRAS
124  from SCT_GeoModel.SCT_GeoModelConfig import SCT_ReadoutGeometryCfg
125  result = SCT_ReadoutGeometryCfg(flags)
126  else:
127  from SCT_GeoModel.SCT_GeoModelConfig import SCT_SimulationGeometryCfg
128  result = SCT_SimulationGeometryCfg(flags)
129 
130  kwargs.setdefault("PixelCase", False)
131  kwargs.setdefault("Identification", 'SCT')
132  kwargs.setdefault("SiDetManagerLocation", 'SCT')
133  # additionall layers - handle with care !
134  kwargs.setdefault("BarrelAdditionalLayerRadii", [])
135  kwargs.setdefault("BarrelAdditionalLayerType", [])
136  kwargs.setdefault("EndcapAdditionalLayerPositionsZ", [-2850., 2850.])
137  kwargs.setdefault("EndcapAdditionalLayerType", [0, 0])
138  kwargs.setdefault("BarrelLayerBinsZ", 1)
139  kwargs.setdefault("BarrelLayerBinsPhi", 1)
140  # SCT endcap specifications
141  kwargs.setdefault("EndcapLayerBinsR", 1)
142  kwargs.setdefault("EndcapLayerBinsPhi", 1)
143  kwargs.setdefault("EndcapComplexRingBinning", True)
144  kwargs.setdefault("SetLayerAssociation", True)
145  kwargs.setdefault("BarrelEnvelope", 0.0)
146 
147  if useCond:
148  name = name+'Cond'
149  SCT_LayerBuilder = CompFactory.InDet.SiLayerBuilderCond(name, **kwargs) \
150  if useCond else \
151  CompFactory.InDet.SiLayerBuilder(name, **kwargs)
152  result.setPrivateTools(SCT_LayerBuilder)
153  return result
154 

◆ TRT_LayerBuilderCfg()

def InDetTrackingGeometryConfig.TRT_LayerBuilderCfg (   flags,
  name = 'TRT_LayerBuilder',
  useCond = True,
**  kwargs 
)

Definition at line 192 of file InDetTrackingGeometryConfig.py.

192 def TRT_LayerBuilderCfg(flags, name='TRT_LayerBuilder', useCond=True, **kwargs):
193  # for TRT DetectorElement conditions data:
194  from TRT_GeoModel.TRT_GeoModelConfig import TRT_ReadoutGeometryCfg
195  result = TRT_ReadoutGeometryCfg(flags)
196 
197  useFatras = flags.Common.ProductionStep in \
198  [ProductionStep.Simulation, ProductionStep.FastChain] \
199  and flags.Sim.ISF.Simulator.usesFatras()
200 
201  kwargs.setdefault("ModelLayersOnly",
202  not(flags.Beam.Type is BeamType.Cosmics) and \
203  not(useFatras))
204 
205  if not useFatras:
206  kwargs.setdefault("BarrelLayerBinsZ", 1)
207  kwargs.setdefault("BarrelLayerBinsPhi", 1)
208  kwargs.setdefault("EndcapLayerBinsR", 1)
209 
210  if useCond:
211  name = name+'Cond'
212  TRT_LayerBuilder = CompFactory.InDet.TRT_LayerBuilderCond(name, **kwargs) \
213  if useCond else \
214  CompFactory.InDet.TRT_LayerBuilder(name, **kwargs)
215  result.setPrivateTools(TRT_LayerBuilder)
216  return result
217 
218 # Geometry builders
219 
InDetTrackingGeometryConfig.TRT_LayerBuilderCfg
def TRT_LayerBuilderCfg(flags, name='TRT_LayerBuilder', useCond=True, **kwargs)
Definition: InDetTrackingGeometryConfig.py:192
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
InDetTrackingGeometryConfig.ITkTrackingGeometryBuilderCfg
def ITkTrackingGeometryBuilderCfg(flags, name='ITkTrackingGeometryBuilder', useCond=True, **kwargs)
Definition: InDetTrackingGeometryConfig.py:356
TrkDetDescrToolsConfig.InDetTrackingVolumeHelperCfg
def InDetTrackingVolumeHelperCfg(flags, name='InDetTrackingVolumeHelper', **kwargs)
Definition: TrkDetDescrToolsConfig.py:7
BeamPipeGMConfig.BeamPipeGeometryCfg
def BeamPipeGeometryCfg(flags)
Definition: BeamPipeGMConfig.py:5
TrkDetDescrToolsConfig.ITkPixelLayerProviderOuterCfg
def ITkPixelLayerProviderOuterCfg(flags, name='ITkPixelProviderOuter', useCond=True, **kwargs)
Definition: TrkDetDescrToolsConfig.py:175
TRT_GeoModelConfig.TRT_ReadoutGeometryCfg
def TRT_ReadoutGeometryCfg(flags)
Definition: TRT_GeoModelConfig.py:55
ITkPixelGeoModelConfig.ITkPixelSimulationGeometryCfg
def ITkPixelSimulationGeometryCfg(flags, setGeometryAlignable=False, setAlignmentFolderName="/Indet/Align")
Definition: ITkPixelGeoModelConfig.py:32
InDetTrackingGeometryConfig.ITkStripLayerBuilderCfg
def ITkStripLayerBuilderCfg(flags, name='ITkStripLayerBuilder', useCond=True, **kwargs)
Definition: InDetTrackingGeometryConfig.py:155
python.InDetServMatGeoModelConfig.InDetServiceMaterialCfg
def InDetServiceMaterialCfg(flags)
Definition: InDetServMatGeoModelConfig.py:8
InDetTrackingGeometryConfig.BeamPipeBuilderCfg
def BeamPipeBuilderCfg(flags, name='BeamPipeBuilder', useCond=True, **kwargs)
Definition: InDetTrackingGeometryConfig.py:8
TrkDetDescrToolsConfig.LayerArrayCreatorCfg
def LayerArrayCreatorCfg(flags, name='LayerArrayCreator', **kwargs)
Definition: TrkDetDescrToolsConfig.py:55
ITkStripGeoModelConfig.ITkStripSimulationGeometryCfg
def ITkStripSimulationGeometryCfg(flags, setGeometryAlignable=False, setAlignmentFolderName="/Indet/Align")
Definition: ITkStripGeoModelConfig.py:32
InDetTrackingGeometryConfig.InDetTrackingGeometryBuilderCfg
def InDetTrackingGeometryBuilderCfg(flags, name='InDetTrackingGeometryBuilder', useCond=True, **kwargs)
Definition: InDetTrackingGeometryConfig.py:220
InDetTrackingGeometryConfig.PixelLayerBuilderCfg
def PixelLayerBuilderCfg(flags, name='PixelLayerBuilder', useCond=True, **kwargs)
Definition: InDetTrackingGeometryConfig.py:28
InDetTrackingGeometryConfig.ITkPixelLayerBuilderCfg
def ITkPixelLayerBuilderCfg(flags, name='ITkPixelLayerBuilder', useCond=True, **kwargs)
Definition: InDetTrackingGeometryConfig.py:64
TrkDetDescrToolsConfig.InDetCylinderVolumeCreatorCfg
def InDetCylinderVolumeCreatorCfg(flags, name='InDetCylinderVolumeCreator', **kwargs)
Definition: TrkDetDescrToolsConfig.py:82
TrkDetDescrToolsConfig.ITkCylinderVolumeCreatorCfg
def ITkCylinderVolumeCreatorCfg(flags, name='ITkCylinderVolumeCreator', **kwargs)
Definition: TrkDetDescrToolsConfig.py:98
TrkDetDescrToolsConfig.TrackingVolumeArrayCreatorCfg
def TrackingVolumeArrayCreatorCfg(flags, name="TrackingVolumeArrayCreator", **kwargs)
Definition: TrkDetDescrToolsConfig.py:47
InDetTrackingGeometryConfig.ITkPixelLayerBuilderInnerCfg
def ITkPixelLayerBuilderInnerCfg(flags, name='ITkPixelLayerBuilderInner', useCond=True, **kwargs)
Definition: InDetTrackingGeometryConfig.py:101
PixelGeoModelConfig.PixelSimulationGeometryCfg
def PixelSimulationGeometryCfg(flags)
Definition: PixelGeoModelConfig.py:34
SCT_GeoModelConfig.SCT_ReadoutGeometryCfg
def SCT_ReadoutGeometryCfg(flags)
Definition: SCT_GeoModelConfig.py:42
TrkDetDescrToolsConfig.ITkStripLayerProviderCfg
def ITkStripLayerProviderCfg(flags, name='ITkStripProvider', useCond=True, **kwargs)
Definition: TrkDetDescrToolsConfig.py:194
PixelGeoModelConfig.PixelReadoutGeometryCfg
def PixelReadoutGeometryCfg(flags)
Definition: PixelGeoModelConfig.py:42
InDetTrackingGeometryConfig.ITkBeamPipeBuilderCfg
def ITkBeamPipeBuilderCfg(flags, name='ITkBeamPipeBuilder', useCond=True, **kwargs)
Definition: InDetTrackingGeometryConfig.py:21
TrkDetDescrToolsConfig.ITkBeamPipeProviderCfg
def ITkBeamPipeProviderCfg(flags, name='ITkBeamPipeProvider', useCond=True, **kwargs)
Definition: TrkDetDescrToolsConfig.py:137
InDetTrackingGeometryConfig.SCT_LayerBuilderCfg
def SCT_LayerBuilderCfg(flags, name='SCT_LayerBuilder', useCond=True, **kwargs)
Definition: InDetTrackingGeometryConfig.py:121
SCT_GeoModelConfig.SCT_SimulationGeometryCfg
def SCT_SimulationGeometryCfg(flags)
Definition: SCT_GeoModelConfig.py:34
ITkPixelGeoModelConfig.ITkPixelReadoutGeometryCfg
def ITkPixelReadoutGeometryCfg(flags, setGeometryAlignable=False, setAlignmentFolderName="/Indet/Align")
Definition: ITkPixelGeoModelConfig.py:39
TrkDetDescrToolsConfig.ITkPixelLayerProviderInnerCfg
def ITkPixelLayerProviderInnerCfg(flags, name='ITkPixelProviderInner', useCond=True, **kwargs)
Definition: TrkDetDescrToolsConfig.py:156
ITkStripGeoModelConfig.ITkStripReadoutGeometryCfg
def ITkStripReadoutGeometryCfg(flags, setGeometryAlignable=False, setAlignmentFolderName="/Indet/Align")
Definition: ITkStripGeoModelConfig.py:39
SubDetectorEnvelopesConfig.EnvelopeDefSvcCfg
def EnvelopeDefSvcCfg(flags, name="AtlasGeometry_EnvelopeDefSvc", **kwargs)
Definition: SubDetectorEnvelopesConfig.py:15
InDetTrackingGeometryConfig.ITkPixelLayerBuilderOuterCfg
def ITkPixelLayerBuilderOuterCfg(flags, name='ITkPixelLayerBuilderOuter', useCond=True, **kwargs)
Definition: InDetTrackingGeometryConfig.py:112