1 """Define methods to construct configured ITk 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 ITk PixelOverlay algorithm"""
14 kwargs.setdefault(
"BkgInputKey", f
"{flags.Overlay.BkgPrefix}ITkPixelRDOs")
15 kwargs.setdefault(
"SignalInputKey", f
"{flags.Overlay.SigPrefix}ITkPixelRDOs")
16 kwargs.setdefault(
"OutputKey",
"ITkPixelRDOs")
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#ITkPixelRDOs"
35 if not flags.Input.isMC:
37 "IDCInDetBSErrContainer#ITkPixelByteStreamErrs"
40 if flags.Output.doWriteRDO_SGNL:
41 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
43 f
"PixelRDO_Container#{flags.Overlay.SigPrefix}ITkPixelRDOs"
47 if flags.Overlay.doTrackOverlay:
49 f
"PixelRDO_Container#{flags.Overlay.SigPrefix}ITkPixelRDOs"
56 """Return a ComponentAccumulator for the ITk Pixel SDO overlay algorithm"""
60 kwargs.setdefault(
"BkgInputKey",
"")
62 kwargs.setdefault(
"SignalInputKey", f
"{flags.Overlay.SigPrefix}ITkPixelSDO_Map")
63 kwargs.setdefault(
"OutputKey",
"ITkPixelSDO_Map")
66 acc.addEventAlgo(CompFactory.InDetSDOOverlay(name, **kwargs))
69 if flags.Output.doWriteRDO:
70 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
72 "InDetSimDataCollection#ITkPixelSDO_Map"
75 if flags.Output.doWriteRDO_SGNL:
76 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
78 f
"InDetSimDataCollection#{flags.Overlay.SigPrefix}ITkPixelSDO_Map"
85 """Configure and return a ComponentAccumulator for Pixel overlay"""
89 from PixelDigitization.ITkPixelDigitizationConfig
import ITkPixelOverlayDigitizationBasicCfg
96 if flags.Digitization.EnableTruth: