1"""Define methods to configure SiPropertiesTool
3Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
5from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
6from AthenaConfiguration.ComponentFactory
import CompFactory
8from PixelConditionsAlgorithms.ITkPixelConditionsConfig
import (
9 ITkPixelDCSCondHVAlgCfg, ITkPixelDCSCondTempAlgCfg
13 """Return configured ComponentAccumulator and tool for ITkPixelSiPropertiesCondAlg
15 SiPropertiesTool may be provided in kwargs
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))
29 """Return a SiPropertiesTool configured for ITk Pixel"""
31 kwargs.setdefault(
"DetectorName",
"Pixel")
32 kwargs.setdefault(
"ReadKey",
"ITkPixelSiliconPropertiesVector")
33 acc.setPrivateTools(CompFactory.SiPropertiesTool(name, **kwargs))
ITkPixelSiPropertiesToolCfg(flags, name="ITkPixelSiPropertiesTool", **kwargs)
ITkPixelSiPropertiesCondAlgCfg(flags, name="ITkPixelSiPropertiesCondAlg", **kwargs)