ATLAS Offline Software
Functions
PixelConditionsSummaryConfig Namespace Reference

Functions

def PixelConditionsSummaryCfg (flags, name="PixelConditionsSummary", **kwargs)
 
def PixelConditionsSummaryToolNoByteStreamErrorsActiveOnlyCfg (flags, name="PixelConditionsSummaryToolNoByteStreamErrorsAcriveOnly", **kwargs)
 
def PixelActiveDetectorElementStatusToolCfg (flags, name="PixelActiveDetectorElementStatusTool", **kwargs)
 
def PixelByteStreamErrorDetectorElementStatusToolCfg (flags, name="PixelByteStreamErrorDetectorElementStatusTool", **kwargs)
 
def PixelByteStreamErrorDetectorElementStatusToolActiveOnlyCfg (flags, name="PixelByteStreamErrorDetectorElementStatusToolActiveOnly", **kwargs)
 

Detailed Description

Define a function to configure PixelConditionsSummaryCfg

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

Function Documentation

◆ PixelActiveDetectorElementStatusToolCfg()

def PixelConditionsSummaryConfig.PixelActiveDetectorElementStatusToolCfg (   flags,
  name = "PixelActiveDetectorElementStatusTool",
**  kwargs 
)

Definition at line 49 of file PixelConditionsSummaryConfig.py.

49 def PixelActiveDetectorElementStatusToolCfg(flags,name = "PixelActiveDetectorElementStatusTool",**kwargs) :
50  acc = ComponentAccumulator()
51  kwargs.setdefault("IsActiveStatus", [ 'OK', 'WARNING', 'ERROR', 'FATAL' ] )
52  acc.setPrivateTools( CompFactory.PixelActiveDetectorElementStatusTool(name, **kwargs) )
53  return acc
54 

◆ PixelByteStreamErrorDetectorElementStatusToolActiveOnlyCfg()

def PixelConditionsSummaryConfig.PixelByteStreamErrorDetectorElementStatusToolActiveOnlyCfg (   flags,
  name = "PixelByteStreamErrorDetectorElementStatusToolActiveOnly",
**  kwargs 
)

Definition at line 68 of file PixelConditionsSummaryConfig.py.

68 def PixelByteStreamErrorDetectorElementStatusToolActiveOnlyCfg(flags, name = "PixelByteStreamErrorDetectorElementStatusToolActiveOnly",**kwargs) :
69  kwargs.setdefault("ActiveOnly", True)
70  return PixelByteStreamErrorDetectorElementStatusToolCfg(flags, name, **kwargs )

◆ PixelByteStreamErrorDetectorElementStatusToolCfg()

def PixelConditionsSummaryConfig.PixelByteStreamErrorDetectorElementStatusToolCfg (   flags,
  name = "PixelByteStreamErrorDetectorElementStatusTool",
**  kwargs 
)

Definition at line 55 of file PixelConditionsSummaryConfig.py.

55 def PixelByteStreamErrorDetectorElementStatusToolCfg(flags, name = "PixelByteStreamErrorDetectorElementStatusTool",**kwargs) :
56  acc = ComponentAccumulator()
57  if (not flags.Input.isMC and flags.Input.Format is Format.BS) or flags.Overlay.DataOverlay:
58  kwargs.setdefault("PixelByteStreamErrs", "PixelByteStreamErrs")
59  kwargs.setdefault("UseByteStreamFEI4", True)
60  kwargs.setdefault("UseByteStreamFEI3", True)
61  kwargs.setdefault("ActiveOnly", False)
62  acc.setPrivateTools( CompFactory.PixelByteStreamErrorDetectorElementStatusTool(name, **kwargs) )
63  else :
64  kwargs.pop("ActiveOnly",False)
65  acc.setPrivateTools( CompFactory.PixelDetectorElementStatusCloneTool(name, **kwargs) )
66  return acc
67 

◆ PixelConditionsSummaryCfg()

def PixelConditionsSummaryConfig.PixelConditionsSummaryCfg (   flags,
  name = "PixelConditionsSummary",
**  kwargs 
)
Return configured ComponentAccumulator with tool for Pixel Conditions

Definition at line 15 of file PixelConditionsSummaryConfig.py.

15 def PixelConditionsSummaryCfg(flags, name="PixelConditionsSummary", **kwargs):
16  """Return configured ComponentAccumulator with tool for Pixel Conditions"""
17  acc = PixelDCSCondStateAlgCfg(flags)
18  acc.merge(PixelDCSCondStatusAlgCfg(flags))
19  acc.merge(PixelDeadMapCondAlgCfg(flags))
20 
21  kwargs.setdefault("UseByteStreamFEI4", (not flags.Input.isMC and flags.Input.Format is Format.BS) or flags.Overlay.DataOverlay)
22  kwargs.setdefault("UseByteStreamFEI3", (not flags.Input.isMC and flags.Input.Format is Format.BS) or flags.Overlay.DataOverlay)
23  if (flags.Overlay.DataOverlay and
24  flags.Common.ProductionStep is not ProductionStep.MinbiasPreprocessing and
25  not flags.Overlay.ByteStream):
26  from SGComps.SGInputLoaderConfig import SGInputLoaderCfg
27  acc.merge(SGInputLoaderCfg(flags, ["IDCInDetBSErrContainer#PixelByteStreamErrs"]))
28 
29  if flags.InDet.usePixelDCS:
30  pixel_states_active = [ 'READY', 'ON' ] # 'UNKNOWN', 'TRANSITION', 'UNDEFINED', 'DISABLED', 'LOCKED_OUT', 'OFF' states should be masked.
31 
32  kwargs.setdefault("IsActiveStates", pixel_states_active)
33  kwargs.setdefault("IsActiveStatus", [ 'OK', 'WARNING', 'ERROR', 'FATAL' ])
34 
35  from PixelConditionsAlgorithms.PixelConditionsConfig import PixelDetectorElementCondAlgCfg
36  acc.merge(PixelDetectorElementCondAlgCfg(flags))
37  kwargs.setdefault( "PixelDetEleCollKey", "PixelDetectorElementCollection")
38 
39  acc.setPrivateTools(CompFactory.PixelConditionsSummaryTool(name=name + "Tool", **kwargs))
40  return acc
41 

◆ PixelConditionsSummaryToolNoByteStreamErrorsActiveOnlyCfg()

def PixelConditionsSummaryConfig.PixelConditionsSummaryToolNoByteStreamErrorsActiveOnlyCfg (   flags,
  name = "PixelConditionsSummaryToolNoByteStreamErrorsAcriveOnly",
**  kwargs 
)

Definition at line 42 of file PixelConditionsSummaryConfig.py.

42 def PixelConditionsSummaryToolNoByteStreamErrorsActiveOnlyCfg(flags,name = "PixelConditionsSummaryToolNoByteStreamErrorsAcriveOnly", **kwargs) :
43  kwargs.setdefault("ActiveOnly", True)
44  kwargs.setdefault("UseByteStreamFEI4", False)
45  kwargs.setdefault("UseByteStreamFEI3", False)
46  kwargs.setdefault("UseByteStreamRD53", False)
47  return PixelConditionsSummaryCfg(flags, name, **kwargs)
48 
PixelConditionsSummaryConfig.PixelActiveDetectorElementStatusToolCfg
def PixelActiveDetectorElementStatusToolCfg(flags, name="PixelActiveDetectorElementStatusTool", **kwargs)
Definition: PixelConditionsSummaryConfig.py:49
PixelConditionsConfig.PixelDCSCondStateAlgCfg
def PixelDCSCondStateAlgCfg(flags, name="PixelDCSCondStateAlg", **kwargs)
Definition: PixelConditionsConfig.py:177
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:342
PixelConditionsConfig.PixelDCSCondStatusAlgCfg
def PixelDCSCondStatusAlgCfg(flags, name="PixelDCSCondStatusAlg", **kwargs)
Definition: PixelConditionsConfig.py:189
PixelConditionsSummaryConfig.PixelConditionsSummaryCfg
def PixelConditionsSummaryCfg(flags, name="PixelConditionsSummary", **kwargs)
Definition: PixelConditionsSummaryConfig.py:15
PixelConditionsConfig.PixelDeadMapCondAlgCfg
def PixelDeadMapCondAlgCfg(flags, name="PixelDeadMapCondAlg", **kwargs)
Definition: PixelConditionsConfig.py:215
PixelConditionsSummaryConfig.PixelByteStreamErrorDetectorElementStatusToolCfg
def PixelByteStreamErrorDetectorElementStatusToolCfg(flags, name="PixelByteStreamErrorDetectorElementStatusTool", **kwargs)
Definition: PixelConditionsSummaryConfig.py:55
SGInputLoaderConfig.SGInputLoaderCfg
def SGInputLoaderCfg(flags, Load=None, **kwargs)
Definition: SGInputLoaderConfig.py:7
PixelConditionsConfig.PixelDetectorElementCondAlgCfg
def PixelDetectorElementCondAlgCfg(flags, name="PixelDetectorElementCondAlg", **kwargs)
Definition: PixelConditionsConfig.py:231
PixelConditionsSummaryConfig.PixelByteStreamErrorDetectorElementStatusToolActiveOnlyCfg
def PixelByteStreamErrorDetectorElementStatusToolActiveOnlyCfg(flags, name="PixelByteStreamErrorDetectorElementStatusToolActiveOnly", **kwargs)
Definition: PixelConditionsSummaryConfig.py:68
PixelConditionsSummaryConfig.PixelConditionsSummaryToolNoByteStreamErrorsActiveOnlyCfg
def PixelConditionsSummaryToolNoByteStreamErrorsActiveOnlyCfg(flags, name="PixelConditionsSummaryToolNoByteStreamErrorsAcriveOnly", **kwargs)
Definition: PixelConditionsSummaryConfig.py:42