ATLAS Offline Software
Loading...
Searching...
No Matches
ITkPixelGeoModelConfig Namespace Reference

Functions

 ITkPixelGeoModelCfg (flags)
 ITkPixelAlignmentCfg (flags)
 ITkPixelSimulationGeometryCfg (flags)
 ITkPixelReadoutGeometryCfg (flags)

Function Documentation

◆ ITkPixelAlignmentCfg()

ITkPixelGeoModelConfig.ITkPixelAlignmentCfg ( flags)

Definition at line 23 of file ITkPixelGeoModelConfig.py.

23def ITkPixelAlignmentCfg(flags):
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

◆ ITkPixelGeoModelCfg()

ITkPixelGeoModelConfig.ITkPixelGeoModelCfg ( flags)

Definition at line 3 of file ITkPixelGeoModelConfig.py.

3def ITkPixelGeoModelCfg(flags):
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

◆ ITkPixelReadoutGeometryCfg()

ITkPixelGeoModelConfig.ITkPixelReadoutGeometryCfg ( flags)

Definition at line 39 of file ITkPixelGeoModelConfig.py.

39def ITkPixelReadoutGeometryCfg(flags):
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

◆ ITkPixelSimulationGeometryCfg()

ITkPixelGeoModelConfig.ITkPixelSimulationGeometryCfg ( flags)

Definition at line 32 of file ITkPixelGeoModelConfig.py.

32def ITkPixelSimulationGeometryCfg(flags):
33 # main GeoModel config
34 acc = ITkPixelGeoModelCfg(flags)
35 acc.merge(ITkPixelAlignmentCfg(flags))
36 return acc
37
38