ATLAS Offline Software
Loading...
Searching...
No Matches
BCM_ZeroSuppressionConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
2# Configuration of BCM_ZeroSuppression package
3
4from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
5from AthenaConfiguration.ComponentFactory import CompFactory
6from AthenaConfiguration.Enums import ProductionStep
7
8def BCM_ZeroSuppressionCfg(flags, name="InDetBCM_ZeroSuppression", **kwargs):
9 if flags.Detector.GeometryITk:
10 name = name.replace("InDet", "ITk")
11
12 acc = ComponentAccumulator()
13 if flags.Common.ProductionStep is ProductionStep.PileUpPretracking:
14 kwargs.setdefault("BcmContainerName", flags.Overlay.BkgPrefix + "BCM_RDOs")
15 else:
16 kwargs.setdefault("BcmContainerName", "BCM_RDOs")
17 algo = CompFactory.BCM_ZeroSuppression(name, **kwargs)
18 acc.addEventAlgo(algo, primary = True)
19 return acc
BCM_ZeroSuppressionCfg(flags, name="InDetBCM_ZeroSuppression", **kwargs)