ATLAS Offline Software
Loading...
Searching...
No Matches
PLR_ConditionsSummaryConfig Namespace Reference

Functions

 PLR_ConditionsSummaryCfg (flags, name="PLR_ConditionsSummary", **kwargs)

Detailed Description

Define a function to configure PLR_ConditionsSummaryCfg

Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration

Function Documentation

◆ PLR_ConditionsSummaryCfg()

PLR_ConditionsSummaryConfig.PLR_ConditionsSummaryCfg ( flags,
name = "PLR_ConditionsSummary",
** kwargs )
Return configured ComponentAccumulator with tool for ITk Pixel Conditions

Definition at line 11 of file PLR_ConditionsSummaryConfig.py.

11def PLR_ConditionsSummaryCfg(flags, name="PLR_ConditionsSummary", **kwargs):
12 """Return configured ComponentAccumulator with tool for ITk Pixel Conditions"""
13
14 acc = ITkPixelDCSCondStateAlgCfg(flags)
15 acc.merge(ITkPixelDCSCondStatusAlgCfg(flags))
16 acc.merge(ITkPixelDeadMapCondAlgCfg(flags))
17
18 kwargs.setdefault("PixelDetEleCollKey", "PLR_DetectorElementCollection")
19 kwargs.setdefault("PixelDCSStateCondData", "ITkPixelDCSStateCondData")
20 kwargs.setdefault("PixelDCSStatusCondData", "ITkPixelDCSStatusCondData")
21 kwargs.setdefault("PixelDeadMapCondData", "ITkPixelDeadMapCondData")
22 kwargs.setdefault("UseByteStreamFEI4", not flags.Input.isMC)
23 kwargs.setdefault("UseByteStreamFEI3", not flags.Input.isMC)
24 kwargs.setdefault("UseByteStreamRD53", False) # Turned off until BS format is defined
25
26 if flags.InDet.usePixelDCS:
27 kwargs.setdefault("IsActiveStates", [ 'READY', 'ON', 'UNKNOWN', 'TRANSITION', 'UNDEFINED' ])
28 kwargs.setdefault("IsActiveStatus", [ 'OK', 'WARNING', 'ERROR', 'FATAL' ])
29
30 acc.setPrivateTools(CompFactory.PixelConditionsSummaryTool(name=name + "Tool", **kwargs))
31 return acc