ATLAS Offline Software
ITkPixelConditionsSummaryConfig.py
Go to the documentation of this file.
1 """Define a function to configure ITkPixelConditionsSummaryCfg
2 
3 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
4 """
5 from AthenaConfiguration.ComponentFactory import CompFactory
6 
7 from PixelConditionsAlgorithms.ITkPixelConditionsConfig import (
8  ITkPixelDCSCondStateAlgCfg, ITkPixelDCSCondStatusAlgCfg, ITkPixelDeadMapCondAlgCfg
9 )
10 from PixelReadoutGeometry.PixelReadoutGeometryConfig import ITkPixelReadoutManagerCfg
11 
12 def ITkPixelConditionsSummaryCfg(flags, name="ITkPixelConditionsSummary", **kwargs):
13  """Return configured ComponentAccumulator with tool for ITk Pixel Conditions"""
14  acc = ITkPixelReadoutManagerCfg(flags)
15  acc.merge(ITkPixelDCSCondStateAlgCfg(flags))
16  acc.merge(ITkPixelDCSCondStatusAlgCfg(flags))
17  acc.merge(ITkPixelDeadMapCondAlgCfg(flags))
18 
19  kwargs.setdefault("PixelReadoutManager", acc.getPrimary())
20  kwargs.setdefault("PixelDetEleCollKey", "ITkPixelDetectorElementCollection")
21  kwargs.setdefault("PixelDCSStateCondData", "ITkPixelDCSStateCondData")
22  kwargs.setdefault("PixelDCSStatusCondData", "ITkPixelDCSStatusCondData")
23  kwargs.setdefault("PixelDeadMapCondData", "ITkPixelDeadMapCondData")
24  kwargs.setdefault("UseByteStreamFEI4", not flags.Input.isMC)
25  kwargs.setdefault("UseByteStreamFEI3", not flags.Input.isMC)
26  kwargs.setdefault("UseByteStreamRD53", False) # Turned off until BS format is defined
27 
28  acc.setPrivateTools(CompFactory.PixelConditionsSummaryTool(name=name + "Tool", **kwargs))
29  return acc
ITkPixelConditionsSummaryConfig.ITkPixelConditionsSummaryCfg
def ITkPixelConditionsSummaryCfg(flags, name="ITkPixelConditionsSummary", **kwargs)
Definition: ITkPixelConditionsSummaryConfig.py:12
ITkPixelConditionsConfig.ITkPixelDCSCondStateAlgCfg
def ITkPixelDCSCondStateAlgCfg(flags, name="ITkPixelDCSCondStateAlg", **kwargs)
Definition: ITkPixelConditionsConfig.py:104
python.PixelReadoutGeometryConfig.ITkPixelReadoutManagerCfg
def ITkPixelReadoutManagerCfg(flags, name="ITkPixelReadoutManager", **kwargs)
Definition: PixelReadoutGeometryConfig.py:13
ITkPixelConditionsConfig.ITkPixelDeadMapCondAlgCfg
def ITkPixelDeadMapCondAlgCfg(flags, name="ITkPixelDeadMapCondAlg", **kwargs)
Definition: ITkPixelConditionsConfig.py:129
ITkPixelConditionsConfig.ITkPixelDCSCondStatusAlgCfg
def ITkPixelDCSCondStatusAlgCfg(flags, name="ITkPixelDCSCondStatusAlg", **kwargs)
Definition: ITkPixelConditionsConfig.py:112