ATLAS Offline Software
Loading...
Searching...
No Matches
ITkPixelGeoModelConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2
4 from AtlasGeoModel.GeoModelConfig import GeoModelCfg
5 acc = GeoModelCfg(flags)
6 geoModelSvc = acc.getPrimary()
7
8 from AthenaConfiguration.ComponentFactory import CompFactory
9 ITkPixelDetectorTool = CompFactory.ITk.PixelDetectorTool()
10 # ITkPixelDetectorTool.useDynamicAlignFolders = flags.GeoModel.Align.Dynamic
11 ITkPixelDetectorTool.Alignable = flags.ITk.Geometry.pixelAlignable
12 ITkPixelDetectorTool.AlignmentFolderName = flags.ITk.Geometry.alignmentFolder
13 ITkPixelDetectorTool.DetectorName = "ITkPixel"
14 if flags.ITk.Geometry.PixelLocal:
15 # Setting this filename triggers reading from local file rather than DB
16 ITkPixelDetectorTool.GmxFilename = flags.ITk.Geometry.PixelFilename
17 if flags.ITk.Geometry.PixelClobOutputName:
18 ITkPixelDetectorTool.ClobOutputName = flags.ITk.Geometry.PixelClobOutputName
19 geoModelSvc.DetectorTools += [ ITkPixelDetectorTool ]
20 return acc
21
22
24 if flags.GeoModel.Align.LegacyConditionsAccess and not flags.ITk.Align.useLocalDatabase: # revert to old style CondHandle in case of simulation
25 from IOVDbSvc.IOVDbSvcConfig import addFoldersSplitOnline
26 return addFoldersSplitOnline(flags, "INDET", "/Indet/Onl/Align", flags.ITk.Geometry.alignmentFolder)
27 else:
28 from PixelConditionsAlgorithms.ITkPixelConditionsConfig import ITkPixelAlignCondAlgCfg
29 return ITkPixelAlignCondAlgCfg(flags)
30
31
33 # main GeoModel config
34 acc = ITkPixelGeoModelCfg(flags)
35 acc.merge(ITkPixelAlignmentCfg(flags))
36 return acc
37
38
40 # main GeoModel config
41 acc = ITkPixelGeoModelCfg(flags)
42 acc.merge(ITkPixelAlignmentCfg(flags))
43 from PixelConditionsAlgorithms.ITkPixelConditionsConfig import ITkPixelDetectorElementCondAlgCfg
44 acc.merge(ITkPixelDetectorElementCondAlgCfg(flags))
45 return acc