ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetConditions
SiLorentzAngleTool
python
PixelLorentzAngleConfig.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2
3
"""Define methods to configure SCTLorentzAngleTool
4
"""
5
from
SiPropertiesTool.PixelSiPropertiesConfig
import
PixelSiPropertiesToolCfg
6
from
AthenaConfiguration.ComponentFactory
import
CompFactory
7
from
MagFieldServices.MagFieldServicesConfig
import
AtlasFieldCacheCondAlgCfg
8
from
PixelConditionsAlgorithms.PixelConditionsConfig
import
(
9
PixelDCSCondHVAlgCfg, PixelDCSCondTempAlgCfg
10
)
11
from
PixelGeoModel.PixelGeoModelConfig
import
PixelReadoutGeometryCfg
12
13
def
PixelLorentzAngleToolCfg
(flags, name="PixelLorentzAngleTool", **kwargs):
14
"""Return a SiLorentzAngleTool configured for Pixel"""
15
acc =
PixelLorentzAngleCondAlgCfg
(flags)
16
kwargs.setdefault(
"DetectorName"
,
"Pixel"
)
17
kwargs.setdefault(
"SiLorentzAngleCondData"
,
"PixelSiLorentzAngleCondData"
)
18
kwargs.setdefault(
"DetEleCollKey"
,
"PixelDetectorElementCollection"
)
19
kwargs.setdefault(
"UseMagFieldCache"
,
True
)
20
acc.setPrivateTools(CompFactory.SiLorentzAngleTool(name, **kwargs))
21
return
acc
22
23
def
PixelLorentzAngleCondAlgCfg
(flags, name="PixelSiLorentzAngleCondAlg", **kwargs):
24
acc = AtlasFieldCacheCondAlgCfg(flags)
25
acc.merge(PixelReadoutGeometryCfg(flags))
# To produce PixelDetectorElementCollection
26
acc.merge(PixelDCSCondHVAlgCfg(flags))
27
acc.merge(PixelDCSCondTempAlgCfg(flags))
28
kwargs.setdefault(
"SiPropertiesTool"
, acc.popToolsAndMerge(PixelSiPropertiesToolCfg(flags)))
29
kwargs.setdefault(
"UseMagFieldCache"
,
True
)
30
kwargs.setdefault(
"UseMagFieldDcs"
,
not
flags.Common.isOnline)
31
acc.addCondAlgo(CompFactory.PixelSiLorentzAngleCondAlg(name, **kwargs))
32
return
acc
33
python.PixelLorentzAngleConfig.PixelLorentzAngleCondAlgCfg
PixelLorentzAngleCondAlgCfg(flags, name="PixelSiLorentzAngleCondAlg", **kwargs)
Definition
PixelLorentzAngleConfig.py:23
python.PixelLorentzAngleConfig.PixelLorentzAngleToolCfg
PixelLorentzAngleToolCfg(flags, name="PixelLorentzAngleTool", **kwargs)
Definition
PixelLorentzAngleConfig.py:13
Generated on
for ATLAS Offline Software by
1.17.0