1 """Define methods to construct configured PLR overlay algorithms
3 Copyright (C) 2002-2022 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")
18 if not flags.Overlay.DataOverlay:
19 from SGComps.SGInputLoaderConfig
import SGInputLoaderCfg
20 acc.merge(
SGInputLoaderCfg(flags, [f
'PixelRDO_Container#{kwargs["BkgInputKey"]}']))
23 acc.addEventAlgo(CompFactory.PixelOverlay(name, **kwargs))
26 if flags.Output.doWriteRDO:
27 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
29 "PixelRDO_Container#PLR_RDOs"
32 if flags.Overlay.DataOverlay:
34 "IDCInDetBSErrContainer#PLR_ByteStreamErrs"
37 if flags.Output.doWriteRDO_SGNL:
38 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
40 f
"PixelRDO_Container#{flags.Overlay.SigPrefix}PLR_RDOs"
47 """Return a ComponentAccumulator for the PLR SDO overlay algorithm"""
51 kwargs.setdefault(
"BkgInputKey",
"")
53 kwargs.setdefault(
"SignalInputKey", f
"{flags.Overlay.SigPrefix}PLR_SDO_Map")
54 kwargs.setdefault(
"OutputKey",
"PLR_SDO_Map")
57 acc.addEventAlgo(CompFactory.InDetSDOOverlay(name, **kwargs))
60 if flags.Output.doWriteRDO:
61 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
63 "InDetSimDataCollection#PLR_SDO_Map"
66 if flags.Output.doWriteRDO_SGNL:
67 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
69 f
"InDetSimDataCollection#{flags.Overlay.SigPrefix}PLR_SDO_Map"
76 """Configure and return a ComponentAccumulator for PLR overlay"""
80 from PixelDigitization.PLR_DigitizationConfig
import PLR_OverlayDigitizationBasicCfg
85 if flags.Digitization.EnableTruth: