ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetDetDescr
SCT_GeoModel
python
SCT_GeoModelConfig.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
SCT_GeoModelCfg
(flags):
6
from
AtlasGeoModel.GeoModelConfig
import
GeoModelCfg
7
acc = GeoModelCfg(flags)
8
geoModelSvc = acc.getPrimary()
9
10
from
AthenaConfiguration.ComponentFactory
import
CompFactory
11
sctDetectorTool = CompFactory.SCT_DetectorTool()
12
sctDetectorTool.useDynamicAlignFolders = flags.GeoModel.Align.Dynamic
13
sctDetectorTool.Alignable =
True
# make this a flag?
14
geoModelSvc.DetectorTools += [ sctDetectorTool ]
15
return
acc
16
17
18
def
SCT_AlignmentCfg
(flags):
19
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
20
acc = ComponentAccumulator()
21
if
flags.GeoModel.Align.LegacyConditionsAccess:
# revert to old style CondHandle in case of simulation
22
from
IOVDbSvc.IOVDbSvcConfig
import
addFoldersSplitOnline
23
if
flags.GeoModel.Align.Dynamic:
24
acc.merge(addFoldersSplitOnline(flags,
"INDET"
,
25
[
"/Indet/Onl/AlignL1/ID"
,
"/Indet/Onl/AlignL2/SCT"
],
26
[
"/Indet/AlignL1/ID"
,
"/Indet/AlignL2/SCT"
]))
27
acc.merge(addFoldersSplitOnline(flags,
"INDET"
,
"/Indet/Onl/AlignL3"
,
"/Indet/AlignL3"
))
28
else
:
29
acc.merge(addFoldersSplitOnline(flags,
"INDET"
,
"/Indet/Onl/Align"
,
"/Indet/Align"
))
30
else
:
31
from
SCT_ConditionsAlgorithms.SCT_ConditionsAlgorithmsConfig
import
SCT_AlignCondAlgCfg
32
acc.merge(SCT_AlignCondAlgCfg(flags))
33
return
acc
34
35
36
@AccumulatorCache
37
def
SCT_SimulationGeometryCfg
(flags):
38
# main GeoModel config
39
acc =
SCT_GeoModelCfg
(flags)
40
acc.merge(
SCT_AlignmentCfg
(flags))
41
return
acc
42
43
44
@AccumulatorCache
45
def
SCT_ReadoutGeometryCfg
(flags):
46
# main GeoModel config
47
acc =
SCT_GeoModelCfg
(flags)
48
acc.merge(
SCT_AlignmentCfg
(flags))
49
from
SCT_ConditionsAlgorithms.SCT_ConditionsAlgorithmsConfig
import
SCT_DetectorElementCondAlgCfg
50
acc.merge(SCT_DetectorElementCondAlgCfg(flags))
51
return
acc
SCT_GeoModelConfig.SCT_AlignmentCfg
SCT_AlignmentCfg(flags)
Definition
SCT_GeoModelConfig.py:18
SCT_GeoModelConfig.SCT_GeoModelCfg
SCT_GeoModelCfg(flags)
Definition
SCT_GeoModelConfig.py:5
SCT_GeoModelConfig.SCT_ReadoutGeometryCfg
SCT_ReadoutGeometryCfg(flags)
Definition
SCT_GeoModelConfig.py:45
SCT_GeoModelConfig.SCT_SimulationGeometryCfg
SCT_SimulationGeometryCfg(flags)
Definition
SCT_GeoModelConfig.py:37
Generated on
for ATLAS Offline Software by
1.17.0