ATLAS Offline Software
Loading...
Searching...
No Matches
PixelSiPropertiesConfig.py
Go to the documentation of this file.
1"""Define methods to configure SiPropertiesTool
2
3Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
4"""
5from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
6from AthenaConfiguration.ComponentFactory import CompFactory
7
8from PixelConditionsAlgorithms.PixelConditionsConfig import (
9 PixelDCSCondHVAlgCfg, PixelDCSCondTempAlgCfg
10)
11
12
13def 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
25def PixelSiPropertiesToolCfg(flags, name="PixelSiPropertiesTool", **kwargs):
26 """Return a SiPropertiesTool configured for Pixel"""
28 kwargs.setdefault("DetectorName", "Pixel")
29 kwargs.setdefault("ReadKey", "PixelSiliconPropertiesVector")
30 acc.setPrivateTools(CompFactory.SiPropertiesTool(name, **kwargs))
31 return acc
PixelSiPropertiesToolCfg(flags, name="PixelSiPropertiesTool", **kwargs)
PixelSiPropertiesCondAlgCfg(flags, name="PixelSiPropertiesCondAlg", **kwargs)