1 """Define methods to construct configured BCM overlay algorithms
3 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
6 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
7 from AthenaConfiguration.ComponentFactory
import CompFactory
11 """Return a ComponentAccumulator for BCM raw data provider"""
15 kwargs.setdefault(
"RDOKey", f
"{flags.Overlay.BkgPrefix}BCM_RDOs")
17 acc.addEventAlgo(CompFactory.BCM_RawDataProvider(name, **kwargs))
23 """Return a ComponentAccumulator for BCMOverlay algorithm"""
26 kwargs.setdefault(
"BkgInputKey", f
"{flags.Overlay.BkgPrefix}BCM_RDOs")
27 kwargs.setdefault(
"SignalInputKey", f
"{flags.Overlay.SigPrefix}BCM_RDOs")
28 kwargs.setdefault(
"OutputKey",
"BCM_RDOs")
30 kwargs.setdefault(
"isDataOverlay",
not flags.Input.isMC)
33 if flags.Overlay.ByteStream:
36 from SGComps.SGInputLoaderConfig
import SGInputLoaderCfg
37 acc.merge(
SGInputLoaderCfg(flags, [f
'BCM_RDO_Container#{kwargs["BkgInputKey"]}']))
40 acc.addEventAlgo(CompFactory.BCMOverlay(name, **kwargs))
43 if flags.Output.doWriteRDO:
44 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
46 "BCM_RDO_Container#BCM_RDOs"
49 if flags.Output.doWriteRDO_SGNL:
50 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
52 f
"BCM_RDO_Container#{flags.Overlay.SigPrefix}BCM_RDOs"
59 """Return a ComponentAccumulator for the BCM SDO overlay algorithm"""
63 kwargs.setdefault(
"BkgInputKey",
"")
65 kwargs.setdefault(
"SignalInputKey", f
"{flags.Overlay.SigPrefix}BCM_SDO_Map")
66 kwargs.setdefault(
"OutputKey",
"BCM_SDO_Map")
69 acc.addEventAlgo(CompFactory.InDetSDOOverlay(name, **kwargs))
72 if flags.Output.doWriteRDO:
73 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
75 "InDetSimDataCollection#BCM_SDO_Map"
78 if flags.Output.doWriteRDO_SGNL:
79 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
81 f
"InDetSimDataCollection#{flags.Overlay.SigPrefix}BCM_SDO_Map"
88 """Configure and return a ComponentAccumulator for BCM overlay"""
92 from BCM_Digitization.BCM_DigitizationConfig
import BCM_OverlayDigitizationBasicCfg
99 if flags.Digitization.EnableTruth: