ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetDetDescr
PixelGeoModelXml
python
ITkPixelGeoModelConfig.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2
3
def
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
23
def
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
32
def
ITkPixelSimulationGeometryCfg
(flags):
33
# main GeoModel config
34
acc =
ITkPixelGeoModelCfg
(flags)
35
acc.merge(
ITkPixelAlignmentCfg
(flags))
36
return
acc
37
38
39
def
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
ITkPixelGeoModelConfig.ITkPixelGeoModelCfg
ITkPixelGeoModelCfg(flags)
Definition
ITkPixelGeoModelConfig.py:3
ITkPixelGeoModelConfig.ITkPixelAlignmentCfg
ITkPixelAlignmentCfg(flags)
Definition
ITkPixelGeoModelConfig.py:23
ITkPixelGeoModelConfig.ITkPixelReadoutGeometryCfg
ITkPixelReadoutGeometryCfg(flags)
Definition
ITkPixelGeoModelConfig.py:39
ITkPixelGeoModelConfig.ITkPixelSimulationGeometryCfg
ITkPixelSimulationGeometryCfg(flags)
Definition
ITkPixelGeoModelConfig.py:32
Generated on
for ATLAS Offline Software by
1.17.0