ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetDetDescr
PixelGeoModel
python
PixelGeoModelConfig.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
2
from
AthenaConfiguration.AccumulatorCache
import
AccumulatorCache
3
4
5
def
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
19
def
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
39
def
PixelSimulationGeometryCfg
(flags):
40
# main GeoModel config
41
acc =
PixelGeoModelCfg
(flags)
42
acc.merge(
PixelAlignmentCfg
(flags))
43
return
acc
44
45
46
@AccumulatorCache
47
def
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
PixelGeoModelConfig.PixelAlignmentCfg
PixelAlignmentCfg(flags)
Definition
PixelGeoModelConfig.py:19
PixelGeoModelConfig.PixelGeoModelCfg
PixelGeoModelCfg(flags)
Definition
PixelGeoModelConfig.py:5
PixelGeoModelConfig.PixelSimulationGeometryCfg
PixelSimulationGeometryCfg(flags)
Definition
PixelGeoModelConfig.py:39
PixelGeoModelConfig.PixelReadoutGeometryCfg
PixelReadoutGeometryCfg(flags)
Definition
PixelGeoModelConfig.py:47
Generated on
for ATLAS Offline Software by
1.17.0