ATLAS Offline Software
Loading...
Searching...
No Matches
HGTD_GeoModelConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
2
3def 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.DetectorName = "HGTD"
11 hgtdDetectorTool.Alignable = flags.HGTD.Geometry.isAlignable
12 hgtdDetectorTool.AlignmentFolderName = flags.HGTD.Geometry.alignmentFolder
13 if flags.HGTD.Geometry.isLocal:
14 hgtdDetectorTool.GmxFilename = flags.HGTD.Geometry.Filename
15 if flags.HGTD.Geometry.ClobOutputName:
16 hgtdDetectorTool.ClobOutputName = flags.HGTD.Geometry.ClobOutputName
17 geoModelSvc.DetectorTools += [ hgtdDetectorTool ]
18 return acc
19
20
22 # main GeoModel config
23 acc = HGTD_GeoModelCfg(flags)
24 return acc
25
26
28 # main GeoModel config
29 acc = HGTD_GeoModelCfg(flags)
30 from HGTD_ConditionsAlgorithms.HGTD_ConditionsAlgorithmsConfig import HGTD_DetectorElementCondAlgCfg
31 acc.merge(HGTD_DetectorElementCondAlgCfg(flags))
32 return acc