1 """Define methods to construct configured SCT 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 SCTOverlay algorithm"""
14 kwargs.setdefault(
"BkgInputKey", f
"{flags.Overlay.BkgPrefix}SCT_RDOs")
15 kwargs.setdefault(
"SignalInputKey", f
"{flags.Overlay.SigPrefix}SCT_RDOs")
16 kwargs.setdefault(
"OutputKey",
"SCT_RDOs")
19 if flags.Overlay.ByteStream:
20 from SCT_RawDataByteStreamCnv.SCT_RawDataByteStreamCnvConfig
import SCTRawDataProviderCfg, SCTEventFlagWriterCfg
24 from SGComps.SGInputLoaderConfig
import SGInputLoaderCfg
25 acc.merge(
SGInputLoaderCfg(flags, [f
'SCT_RDO_Container#{kwargs["BkgInputKey"]}']))
28 acc.addEventAlgo(CompFactory.SCTOverlay(name, **kwargs))
31 if flags.Output.doWriteRDO:
32 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
34 "SCT_RDO_Container#SCT_RDOs"
37 if not flags.Input.isMC:
39 "IDCInDetBSErrContainer#SCT_ByteStreamErrs"
42 if flags.Output.doWriteRDO_SGNL:
43 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
45 f
"SCT_RDO_Container#{flags.Overlay.SigPrefix}SCT_RDOs"
49 if flags.Overlay.doTrackOverlay:
51 f
"SCT_RDO_Container#{flags.Overlay.SigPrefix}SCT_RDOs"
58 """Return a ComponentAccumulator for the SCT SDO overlay algorithm"""
62 kwargs.setdefault(
"BkgInputKey",
"")
64 kwargs.setdefault(
"SignalInputKey", f
"{flags.Overlay.SigPrefix}SCT_SDO_Map")
65 kwargs.setdefault(
"OutputKey",
"SCT_SDO_Map")
68 acc.addEventAlgo(CompFactory.InDetSDOOverlay(name, **kwargs))
71 if flags.Output.doWriteRDO:
72 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
74 "InDetSimDataCollection#SCT_SDO_Map"
77 if flags.Output.doWriteRDO_SGNL:
78 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
80 f
"InDetSimDataCollection#{flags.Overlay.SigPrefix}SCT_SDO_Map"
87 """Configure and return a ComponentAccumulator for SCT overlay"""
91 from SCT_Digitization.SCT_DigitizationConfig
import SCT_OverlayDigitizationBasicCfg
98 if flags.Digitization.EnableTruth: