ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetConditions
SiPropertiesTool
python
ITkPixelSiPropertiesConfig.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.ITkPixelConditionsConfig
import
(
9
ITkPixelDCSCondHVAlgCfg, ITkPixelDCSCondTempAlgCfg
10
)
11
12
def
ITkPixelSiPropertiesCondAlgCfg
(flags, name="ITkPixelSiPropertiesCondAlg", **kwargs):
13
"""Return configured ComponentAccumulator and tool for ITkPixelSiPropertiesCondAlg
14
15
SiPropertiesTool may be provided in kwargs
16
"""
17
acc = ComponentAccumulator()
18
acc.merge(ITkPixelDCSCondHVAlgCfg(flags))
19
acc.merge(ITkPixelDCSCondTempAlgCfg(flags))
20
kwargs.setdefault(
"PixelDetEleCollKey"
,
"ITkPixelDetectorElementCollection"
)
21
kwargs.setdefault(
"ReadKeyeTemp"
,
"ITkPixelDCSTempCondData"
)
22
kwargs.setdefault(
"ReadKeyHV"
,
"ITkPixelDCSHVCondData"
)
23
kwargs.setdefault(
"WriteKey"
,
"ITkPixelSiliconPropertiesVector"
)
24
acc.addCondAlgo(CompFactory.PixelSiPropertiesCondAlg(name, **kwargs))
25
return
acc
26
27
28
def
ITkPixelSiPropertiesToolCfg
(flags, name="ITkPixelSiPropertiesTool", **kwargs):
29
"""Return a SiPropertiesTool configured for ITk Pixel"""
30
acc =
ITkPixelSiPropertiesCondAlgCfg
(flags)
31
kwargs.setdefault(
"DetectorName"
,
"Pixel"
)
32
kwargs.setdefault(
"ReadKey"
,
"ITkPixelSiliconPropertiesVector"
)
33
acc.setPrivateTools(CompFactory.SiPropertiesTool(name, **kwargs))
34
return
acc
python.ITkPixelSiPropertiesConfig.ITkPixelSiPropertiesCondAlgCfg
ITkPixelSiPropertiesCondAlgCfg(flags, name="ITkPixelSiPropertiesCondAlg", **kwargs)
Definition
ITkPixelSiPropertiesConfig.py:12
python.ITkPixelSiPropertiesConfig.ITkPixelSiPropertiesToolCfg
ITkPixelSiPropertiesToolCfg(flags, name="ITkPixelSiPropertiesTool", **kwargs)
Definition
ITkPixelSiPropertiesConfig.py:28
Generated on
for ATLAS Offline Software by
1.17.0