ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetConditions
SiPropertiesTool
python
PixelSiPropertiesConfig.py
Go to the documentation of this file.
1
"""Define methods to configure SiPropertiesTool
2
3
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
4
"""
5
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
6
from
AthenaConfiguration.ComponentFactory
import
CompFactory
7
8
from
PixelConditionsAlgorithms.PixelConditionsConfig
import
(
9
PixelDCSCondHVAlgCfg, PixelDCSCondTempAlgCfg
10
)
11
12
13
def
PixelSiPropertiesCondAlgCfg
(flags, name="PixelSiPropertiesCondAlg", **kwargs):
14
"""Return configured ComponentAccumulator and tool for PixelSiPropertiesCondAlg
15
16
SiPropertiesTool may be provided in kwargs
17
"""
18
acc = ComponentAccumulator()
19
acc.merge(PixelDCSCondHVAlgCfg(flags))
20
acc.merge(PixelDCSCondTempAlgCfg(flags))
21
acc.addCondAlgo(CompFactory.PixelSiPropertiesCondAlg(name, **kwargs))
22
return
acc
23
24
25
def
PixelSiPropertiesToolCfg
(flags, name="PixelSiPropertiesTool", **kwargs):
26
"""Return a SiPropertiesTool configured for Pixel"""
27
acc =
PixelSiPropertiesCondAlgCfg
(flags)
28
kwargs.setdefault(
"DetectorName"
,
"Pixel"
)
29
kwargs.setdefault(
"ReadKey"
,
"PixelSiliconPropertiesVector"
)
30
acc.setPrivateTools(CompFactory.SiPropertiesTool(name, **kwargs))
31
return
acc
python.PixelSiPropertiesConfig.PixelSiPropertiesToolCfg
PixelSiPropertiesToolCfg(flags, name="PixelSiPropertiesTool", **kwargs)
Definition
PixelSiPropertiesConfig.py:25
python.PixelSiPropertiesConfig.PixelSiPropertiesCondAlgCfg
PixelSiPropertiesCondAlgCfg(flags, name="PixelSiPropertiesCondAlg", **kwargs)
Definition
PixelSiPropertiesConfig.py:13
Generated on
for ATLAS Offline Software by
1.17.0