ATLAS Offline Software
PixelSiPropertiesConfig.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.PixelConditionsConfig import (
9  PixelDCSCondHVAlgCfg, PixelDCSCondTempAlgCfg
10 )
11 
12 
13 def 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 
25 def PixelSiPropertiesToolCfg(flags, name="PixelSiPropertiesTool", **kwargs):
26  """Return a SiPropertiesTool configured for Pixel"""
27  acc = PixelSiPropertiesCondAlgCfg(flags)
28  kwargs.setdefault("DetectorName", "Pixel")
29  kwargs.setdefault("ReadKey", "PixelSiliconPropertiesVector")
30  acc.setPrivateTools(CompFactory.SiPropertiesTool(name, **kwargs))
31  return acc
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
PixelConditionsConfig.PixelDCSCondTempAlgCfg
def PixelDCSCondTempAlgCfg(flags, name="PixelDCSCondTempAlg", **kwargs)
Definition: PixelConditionsConfig.py:201
python.PixelSiPropertiesConfig.PixelSiPropertiesCondAlgCfg
def PixelSiPropertiesCondAlgCfg(flags, name="PixelSiPropertiesCondAlg", **kwargs)
Definition: PixelSiPropertiesConfig.py:13
PixelConditionsConfig.PixelDCSCondHVAlgCfg
def PixelDCSCondHVAlgCfg(flags, name="PixelDCSCondHVAlg", **kwargs)
Definition: PixelConditionsConfig.py:162
python.PixelSiPropertiesConfig.PixelSiPropertiesToolCfg
def PixelSiPropertiesToolCfg(flags, name="PixelSiPropertiesTool", **kwargs)
Definition: PixelSiPropertiesConfig.py:25