ATLAS Offline Software
Loading...
Searching...
No Matches
ITkPixelSiPropertiesConfig.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.ITkPixelConditionsConfig import (
9 ITkPixelDCSCondHVAlgCfg, ITkPixelDCSCondTempAlgCfg
10)
11
12def 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
28def ITkPixelSiPropertiesToolCfg(flags, name="ITkPixelSiPropertiesTool", **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))
34 return acc
ITkPixelSiPropertiesToolCfg(flags, name="ITkPixelSiPropertiesTool", **kwargs)
ITkPixelSiPropertiesCondAlgCfg(flags, name="ITkPixelSiPropertiesCondAlg", **kwargs)