1 """Define methods to construct configured ITk Strip 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 Strip Overlay algorithm"""
14 kwargs.setdefault(
"BkgInputKey", f
"{flags.Overlay.BkgPrefix}ITkStripRDOs")
15 kwargs.setdefault(
"SignalInputKey", f
"{flags.Overlay.SigPrefix}ITkStripRDOs")
16 kwargs.setdefault(
"OutputKey",
"ITkStripRDOs")
19 if flags.Overlay.ByteStream:
22 from SGComps.SGInputLoaderConfig
import SGInputLoaderCfg
23 acc.merge(
SGInputLoaderCfg(flags, [f
'SCT_RDO_Container#{kwargs["BkgInputKey"]}']))
26 acc.addEventAlgo(CompFactory.SCTOverlay(name, **kwargs))
29 if flags.Output.doWriteRDO:
30 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
32 "SCT_RDO_Container#ITkStripRDOs"
35 if not flags.Input.isMC:
37 "IDCInDetBSErrContainer#ITkStripByteStreamErrs"
40 if flags.Output.doWriteRDO_SGNL:
41 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
43 f
"SCT_RDO_Container#{flags.Overlay.SigPrefix}ITkStripRDOs"
47 if flags.Overlay.doTrackOverlay:
49 f
"SCT_RDO_Container#{flags.Overlay.SigPrefix}ITkStripRDOs"
56 """Return a ComponentAccumulator for the ITk Strip SDO overlay algorithm"""
60 kwargs.setdefault(
"BkgInputKey",
"")
62 kwargs.setdefault(
"SignalInputKey", f
"{flags.Overlay.SigPrefix}ITkStripSDO_Map")
63 kwargs.setdefault(
"OutputKey",
"ITkStripSDO_Map")
66 acc.addEventAlgo(CompFactory.InDetSDOOverlay(name, **kwargs))
69 if flags.Output.doWriteRDO:
70 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
72 "InDetSimDataCollection#ITkStripSDO_Map"
75 if flags.Output.doWriteRDO_SGNL:
76 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
78 f
"InDetSimDataCollection#{flags.Overlay.SigPrefix}ITkStripSDO_Map"
85 """Configure and return a ComponentAccumulator for ITk Strip overlay"""
89 from StripDigitization.StripDigitizationConfig
import ITkStripOverlayDigitizationBasicCfg
96 if flags.Digitization.EnableTruth: