ATLAS Offline Software
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"""
31  kwargs.setdefault("DetectorName", "Pixel")
32  kwargs.setdefault("ReadKey", "ITkPixelSiliconPropertiesVector")
33  acc.setPrivateTools(CompFactory.SiPropertiesTool(name, **kwargs))
34  return acc
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.ITkPixelSiPropertiesConfig.ITkPixelSiPropertiesToolCfg
def ITkPixelSiPropertiesToolCfg(flags, name="ITkPixelSiPropertiesTool", **kwargs)
Definition: ITkPixelSiPropertiesConfig.py:28
ITkPixelConditionsConfig.ITkPixelDCSCondHVAlgCfg
def ITkPixelDCSCondHVAlgCfg(flags, name="ITkPixelDCSCondHVAlg", **kwargs)
Definition: ITkPixelConditionsConfig.py:94
python.ITkPixelSiPropertiesConfig.ITkPixelSiPropertiesCondAlgCfg
def ITkPixelSiPropertiesCondAlgCfg(flags, name="ITkPixelSiPropertiesCondAlg", **kwargs)
Definition: ITkPixelSiPropertiesConfig.py:12
ITkPixelConditionsConfig.ITkPixelDCSCondTempAlgCfg
def ITkPixelDCSCondTempAlgCfg(flags, name="ITkPixelDCSCondTempAlg", **kwargs)
Definition: ITkPixelConditionsConfig.py:120