1 """Define methods to construct configured PLR 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 PLR Overlay algorithm"""
14 kwargs.setdefault(
"BkgInputKey", f
"{flags.Overlay.BkgPrefix}PLR_RDOs")
15 kwargs.setdefault(
"SignalInputKey", f
"{flags.Overlay.SigPrefix}PLR_RDOs")
16 kwargs.setdefault(
"OutputKey",
"PLR_RDOs")
19 if flags.Overlay.ByteStream:
22 from SGComps.SGInputLoaderConfig
import SGInputLoaderCfg
23 acc.merge(
SGInputLoaderCfg(flags, [f
'PixelRDO_Container#{kwargs["BkgInputKey"]}']))
26 acc.addEventAlgo(CompFactory.PixelOverlay(name, **kwargs))
29 if flags.Output.doWriteRDO:
30 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
32 "PixelRDO_Container#PLR_RDOs"
35 if not flags.Input.isMC:
37 "IDCInDetBSErrContainer#PLR_ByteStreamErrs"
40 if flags.Output.doWriteRDO_SGNL:
41 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
43 f
"PixelRDO_Container#{flags.Overlay.SigPrefix}PLR_RDOs"
50 """Return a ComponentAccumulator for the PLR SDO overlay algorithm"""
54 kwargs.setdefault(
"BkgInputKey",
"")
56 kwargs.setdefault(
"SignalInputKey", f
"{flags.Overlay.SigPrefix}PLR_SDO_Map")
57 kwargs.setdefault(
"OutputKey",
"PLR_SDO_Map")
60 acc.addEventAlgo(CompFactory.InDetSDOOverlay(name, **kwargs))
63 if flags.Output.doWriteRDO:
64 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
66 "InDetSimDataCollection#PLR_SDO_Map"
69 if flags.Output.doWriteRDO_SGNL:
70 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
72 f
"InDetSimDataCollection#{flags.Overlay.SigPrefix}PLR_SDO_Map"
79 """Configure and return a ComponentAccumulator for PLR overlay"""
83 from PixelDigitization.PLR_DigitizationConfig
import PLR_OverlayDigitizationBasicCfg
90 if flags.Digitization.EnableTruth: