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

Functions

 PixelGeoModelCfg (flags)
 PixelAlignmentCfg (flags)
 PixelSimulationGeometryCfg (flags)
 PixelReadoutGeometryCfg (flags)

Function Documentation

◆ PixelAlignmentCfg()

PixelGeoModelConfig.PixelAlignmentCfg ( flags)

Definition at line 19 of file PixelGeoModelConfig.py.

19def PixelAlignmentCfg(flags):
20 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
21 acc = ComponentAccumulator()
22 if flags.GeoModel.Align.LegacyConditionsAccess: # revert to old style CondHandle in case of simulation
23 from IOVDbSvc.IOVDbSvcConfig import addFoldersSplitOnline
24 if flags.GeoModel.Align.Dynamic:
25 acc.merge(addFoldersSplitOnline(flags, "INDET",
26 ["/Indet/Onl/AlignL1/ID", "/Indet/Onl/AlignL2/PIX"],
27 ["/Indet/AlignL1/ID", "/Indet/AlignL2/PIX"]))
28 acc.merge(addFoldersSplitOnline(flags, "INDET", "/Indet/Onl/AlignL3", "/Indet/AlignL3"))
29 else:
30 acc.merge(addFoldersSplitOnline(flags, "INDET", "/Indet/Onl/Align", "/Indet/Align"))
31 acc.merge(addFoldersSplitOnline(flags, "INDET", "/Indet/Onl/IBLDist", "/Indet/IBLDist"))
32 else:
33 from PixelConditionsAlgorithms.PixelConditionsConfig import PixelAlignCondAlgCfg
34 acc.merge(PixelAlignCondAlgCfg(flags))
35 return acc
36
37
38@AccumulatorCache

◆ PixelGeoModelCfg()

PixelGeoModelConfig.PixelGeoModelCfg ( flags)

Definition at line 5 of file PixelGeoModelConfig.py.

5def PixelGeoModelCfg(flags):
6 from AtlasGeoModel.GeoModelConfig import GeoModelCfg
7 acc = GeoModelCfg(flags)
8 geoModelSvc = acc.getPrimary()
9
10 from AthenaConfiguration.ComponentFactory import CompFactory
11 pixelDetectorTool = CompFactory.PixelDetectorTool("PixelDetectorTool")
12 pixelDetectorTool.BCM_Tool = CompFactory.InDetDD.BCM_Builder()
13 pixelDetectorTool.BLM_Tool = CompFactory.InDetDD.BLM_Builder()
14 pixelDetectorTool.useDynamicAlignFolders = flags.GeoModel.Align.Dynamic
15 geoModelSvc.DetectorTools += [ pixelDetectorTool ]
16 return acc
17
18

◆ PixelReadoutGeometryCfg()

PixelGeoModelConfig.PixelReadoutGeometryCfg ( flags)

Definition at line 47 of file PixelGeoModelConfig.py.

47def PixelReadoutGeometryCfg(flags):
48 # main GeoModel config
49 acc = PixelGeoModelCfg(flags)
50 acc.merge(PixelAlignmentCfg(flags))
51 from PixelConditionsAlgorithms.PixelConditionsConfig import PixelDetectorElementCondAlgCfg
52 acc.merge(PixelDetectorElementCondAlgCfg(flags))
53 return acc

◆ PixelSimulationGeometryCfg()

PixelGeoModelConfig.PixelSimulationGeometryCfg ( flags)

Definition at line 39 of file PixelGeoModelConfig.py.

39def PixelSimulationGeometryCfg(flags):
40 # main GeoModel config
41 acc = PixelGeoModelCfg(flags)
42 acc.merge(PixelAlignmentCfg(flags))
43 return acc
44
45
46@AccumulatorCache