ATLAS Offline Software
HGTD_TrackingGeometryConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2 # Configuration of HGTD_TrackingGeometry package
3 
4 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
5 from AthenaConfiguration.ComponentFactory import CompFactory
6 
7 def HGTD_LayerBuilderCondCfg(flags, name='HGTD_LayerBuilderCond', **kwargs):
8  # for hgtd DetectorElement conditions data :
9  if flags.HGTD.Geometry.useGeoModelXml:
10  from HGTD_GeoModelXml.HGTD_GeoModelConfig import HGTD_ReadoutGeometryCfg
11  else:
12  from HGTD_GeoModel.HGTD_GeoModelConfig import HGTD_ReadoutGeometryCfg
13  result = HGTD_ReadoutGeometryCfg(flags)
14 
15  kwargs.setdefault("Identification", 'HGTD')
16  kwargs.setdefault("SetLayerAssociation", True)
17 
18  result.setPrivateTools(CompFactory.HGTD_LayerBuilderCond(name, **kwargs))
19  return result
20 
21 
23  name='HGTD_TrackingGeometryBuilderCond',
24  **kwargs):
25  result = ComponentAccumulator()
26 
27  HGTD_LayerBuilder = result.popToolsAndMerge(
29  result.addPublicTool(HGTD_LayerBuilder)
30 
31  from TrackingGeometryCondAlg.TrkDetDescrToolsConfig import HGTD_CylinderVolumeCreatorCfg
32  cylinderVolumeCreator = result.popToolsAndMerge(
34  result.addPublicTool(cylinderVolumeCreator)
35 
36  from SubDetectorEnvelopes.SubDetectorEnvelopesConfig import (
37  EnvelopeDefSvcCfg)
38  envelopeDefinitionSvc = result.getPrimaryAndMerge(EnvelopeDefSvcCfg(flags))
39 
40  kwargs.setdefault("LayerBuilder", HGTD_LayerBuilder)
41  kwargs.setdefault("EnvelopeDefinitionSvc", envelopeDefinitionSvc)
42  kwargs.setdefault("TrackingVolumeCreator", cylinderVolumeCreator)
43 
44  result.setPrivateTools(
45  CompFactory.HGTD_TrackingGeometryBuilderCond(name, **kwargs))
46  return result
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
HGTD_TrackingGeometryConfig.HGTD_LayerBuilderCondCfg
def HGTD_LayerBuilderCondCfg(flags, name='HGTD_LayerBuilderCond', **kwargs)
Definition: HGTD_TrackingGeometryConfig.py:7
HGTD_GeoModelConfig.HGTD_ReadoutGeometryCfg
def HGTD_ReadoutGeometryCfg(flags)
Definition: python/HGTD_GeoModelConfig.py:23
HGTD_TrackingGeometryConfig.HGTD_TrackingGeometryBuilderCfg
def HGTD_TrackingGeometryBuilderCfg(flags, name='HGTD_TrackingGeometryBuilderCond', **kwargs)
Definition: HGTD_TrackingGeometryConfig.py:22
TrkDetDescrToolsConfig.HGTD_CylinderVolumeCreatorCfg
def HGTD_CylinderVolumeCreatorCfg(flags, name='HGTD_CylinderVolumeCreator', **kwargs)
Definition: TrkDetDescrToolsConfig.py:118
SubDetectorEnvelopesConfig.EnvelopeDefSvcCfg
def EnvelopeDefSvcCfg(flags, name="AtlasGeometry_EnvelopeDefSvc", **kwargs)
Definition: SubDetectorEnvelopesConfig.py:15