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 24 of file PixelGeoModelConfig.py.

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

◆ PixelGeoModelCfg()

PixelGeoModelConfig.PixelGeoModelCfg ( flags)

Definition at line 5 of file PixelGeoModelConfig.py.

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

◆ PixelReadoutGeometryCfg()

PixelGeoModelConfig.PixelReadoutGeometryCfg ( flags)

Definition at line 52 of file PixelGeoModelConfig.py.

52def PixelReadoutGeometryCfg(flags):
53 # main GeoModel config
54 acc = PixelGeoModelCfg(flags)
55 acc.merge(PixelAlignmentCfg(flags))
56 from PixelConditionsAlgorithms.PixelConditionsConfig import PixelDetectorElementCondAlgCfg
57 acc.merge(PixelDetectorElementCondAlgCfg(flags))
58 return acc

◆ PixelSimulationGeometryCfg()

PixelGeoModelConfig.PixelSimulationGeometryCfg ( flags)

Definition at line 44 of file PixelGeoModelConfig.py.

44def PixelSimulationGeometryCfg(flags):
45 # main GeoModel config
46 acc = PixelGeoModelCfg(flags)
47 acc.merge(PixelAlignmentCfg(flags))
48 return acc
49
50
51@AccumulatorCache