1 """Define methods to configure SiPropertiesTool
3 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
5 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
6 from AthenaConfiguration.ComponentFactory
import CompFactory
8 from PixelConditionsAlgorithms.ITkPixelConditionsConfig
import (
9 ITkPixelDCSCondHVAlgCfg, ITkPixelDCSCondTempAlgCfg
13 """Return configured ComponentAccumulator and tool for ITkPixelSiPropertiesCondAlg
15 SiPropertiesTool may be provided in kwargs
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))