1 """Define methods to construct configured Pixel 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 PixelOverlay algorithm"""
14 kwargs.setdefault(
"BkgInputKey", f
"{flags.Overlay.BkgPrefix}PixelRDOs")
15 kwargs.setdefault(
"SignalInputKey", f
"{flags.Overlay.SigPrefix}PixelRDOs")
16 kwargs.setdefault(
"OutputKey",
"PixelRDOs")
19 if flags.Overlay.ByteStream:
20 from PixelRawDataByteStreamCnv.PixelRawDataByteStreamCnvConfig
import PixelRawDataProviderAlgCfg
23 from SGComps.SGInputLoaderConfig
import SGInputLoaderCfg
24 acc.merge(
SGInputLoaderCfg(flags, [f
'PixelRDO_Container#{kwargs["BkgInputKey"]}']))
27 acc.addEventAlgo(CompFactory.PixelOverlay(name, **kwargs))
30 if flags.Output.doWriteRDO:
31 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
33 "PixelRDO_Container#PixelRDOs"
36 if not flags.Input.isMC:
38 "IDCInDetBSErrContainer#PixelByteStreamErrs"
41 if flags.Output.doWriteRDO_SGNL:
42 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
44 f
"PixelRDO_Container#{flags.Overlay.SigPrefix}PixelRDOs"
48 if flags.Overlay.doTrackOverlay:
50 f
"PixelRDO_Container#{flags.Overlay.SigPrefix}PixelRDOs"
57 """Return a ComponentAccumulator for the Pixel SDO overlay algorithm"""
61 kwargs.setdefault(
"BkgInputKey",
"")
63 kwargs.setdefault(
"SignalInputKey", f
"{flags.Overlay.SigPrefix}PixelSDO_Map")
64 kwargs.setdefault(
"OutputKey",
"PixelSDO_Map")
67 acc.addEventAlgo(CompFactory.InDetSDOOverlay(name, **kwargs))
70 if flags.Output.doWriteRDO:
71 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
73 "InDetSimDataCollection#PixelSDO_Map"
76 if flags.Output.doWriteRDO_SGNL:
77 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
79 f
"InDetSimDataCollection#{flags.Overlay.SigPrefix}PixelSDO_Map"
86 """Configure and return a ComponentAccumulator for Pixel overlay"""
90 from PixelDigitization.PixelDigitizationConfig
import PixelOverlayDigitizationBasicCfg
97 if flags.Digitization.EnableTruth: