1 """Define a function to configure ITkPixelConditionsSummaryCfg
3 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
5 from AthenaConfiguration.ComponentFactory
import CompFactory
7 from PixelConditionsAlgorithms.ITkPixelConditionsConfig
import (
8 ITkPixelDCSCondStateAlgCfg, ITkPixelDCSCondStatusAlgCfg, ITkPixelDeadMapCondAlgCfg
10 from PixelReadoutGeometry.PixelReadoutGeometryConfig
import ITkPixelReadoutManagerCfg
13 """Return configured ComponentAccumulator with tool for ITk Pixel Conditions"""
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)
28 acc.setPrivateTools(CompFactory.PixelConditionsSummaryTool(name=name +
"Tool", **kwargs))