1 """Define a function to configure ITkPixelConditionsSummaryCfg
3 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
5 from AthenaConfiguration.ComponentFactory
import CompFactory
6 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
7 from AthenaConfiguration.Enums
import Format
8 from PixelConditionsAlgorithms.ITkPixelConditionsConfig
import (
9 ITkPixelDCSCondStateAlgCfg, ITkPixelDCSCondStatusAlgCfg, ITkPixelDeadMapCondAlgCfg
11 from PixelReadoutGeometry.PixelReadoutGeometryConfig
import ITkPixelReadoutManagerCfg
14 """Return configured ComponentAccumulator with tool for ITk Pixel Conditions"""
20 kwargs.setdefault(
"PixelReadoutManager", acc.getPrimary())
21 kwargs.setdefault(
"PixelDetEleCollKey",
"ITkPixelDetectorElementCollection")
22 kwargs.setdefault(
"PixelDCSStateCondData",
"ITkPixelDCSStateCondData")
23 kwargs.setdefault(
"PixelDCSStatusCondData",
"ITkPixelDCSStatusCondData")
24 kwargs.setdefault(
"PixelDeadMapCondData",
"ITkPixelDeadMapCondData")
25 kwargs.setdefault(
"UseByteStreamFEI4",
not flags.Input.isMC)
26 kwargs.setdefault(
"UseByteStreamFEI3",
not flags.Input.isMC)
27 kwargs.setdefault(
"UseByteStreamRD53",
False)
29 acc.setPrivateTools(CompFactory.PixelConditionsSummaryTool(name=name +
"Tool", **kwargs))
36 kwargs.setdefault(
"PixelReadoutManager",
"ITkPixelReadoutManager")
37 kwargs.setdefault(
"PixelDetEleCollKey",
"ITkPixelDetectorElementCollection")
38 if not flags.Input.isMC
and not flags.Overlay.DataOverlay
and flags.Input.Format
is Format.BS :
39 kwargs.setdefault(
"PixelByteStreamErrs",
"PixelByteStreamErrs")
40 kwargs.setdefault(
"UseByteStreamFEI4",
True)
41 kwargs.setdefault(
"UseByteStreamFEI3",
True)
42 kwargs.setdefault(
"ActiveOnly",
False)
43 acc.setPrivateTools( CompFactory.PixelByteStreamErrorDetectorElementStatusTool(name, **kwargs) )
45 kwargs.pop(
"ActiveOnly",
False)
46 acc.setPrivateTools( CompFactory.PixelDetectorElementStatusCloneTool(name, **kwargs) )