ATLAS Offline Software
ml/python/HGTD_GeoModelConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
2 
3 def HGTD_GeoModelCfg(flags):
4  from AtlasGeoModel.GeoModelConfig import GeoModelCfg
5  acc = GeoModelCfg(flags)
6  geoModelSvc = acc.getPrimary()
7 
8  from AthenaConfiguration.ComponentFactory import CompFactory
9  hgtdDetectorTool = CompFactory.HGTD_GMX_DetectorTool()
10  hgtdDetectorTool.Alignable = False
11  hgtdDetectorTool.DetectorName = "HGTD"
12  if flags.HGTD.Geometry.isLocal:
13  hgtdDetectorTool.GmxFilename = flags.HGTD.Geometry.Filename
14  if flags.HGTD.Geometry.ClobOutputName:
15  hgtdDetectorTool.ClobOutputName = flags.HGTD.Geometry.ClobOutputName
16  geoModelSvc.DetectorTools += [ hgtdDetectorTool ]
17  return acc
18 
19 
21  # main GeoModel config
22  acc = HGTD_GeoModelCfg(flags)
23  return acc
24 
25 
26 def HGTD_ReadoutGeometryCfg(flags):
27  # main GeoModel config
28  acc = HGTD_GeoModelCfg(flags)
29  from HGTD_ConditionsAlgorithms.HGTD_ConditionsAlgorithmsConfig import HGTD_DetectorElementCondAlgCfg
30  acc.merge(HGTD_DetectorElementCondAlgCfg(flags))
31  return acc
HGTD_GeoModelConfig.HGTD_ReadoutGeometryCfg
def HGTD_ReadoutGeometryCfg(flags)
Definition: python/HGTD_GeoModelConfig.py:23
HGTD_ConditionsAlgorithmsConfig.HGTD_DetectorElementCondAlgCfg
def HGTD_DetectorElementCondAlgCfg(flags, name="HGTD_DetectorElementCondAlg", **kwargs)
Definition: HGTD_ConditionsAlgorithmsConfig.py:6
HGTD_GeoModelConfig.HGTD_SimulationGeometryCfg
def HGTD_SimulationGeometryCfg(flags)
Definition: python/HGTD_GeoModelConfig.py:17
HGTD_GeoModelConfig.HGTD_GeoModelCfg
def HGTD_GeoModelCfg(flags)
Definition: python/HGTD_GeoModelConfig.py:3
python.GeoModelConfig.GeoModelCfg
def GeoModelCfg(flags)
Definition: GeoModelConfig.py:16