1 """Define methods to construct configured HGTD 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 HGTD overlay algorithm"""
14 kwargs.setdefault(
"BkgInputKey", f
"{flags.Overlay.BkgPrefix}HGTD_RDOs")
15 kwargs.setdefault(
"SignalInputKey", f
"{flags.Overlay.SigPrefix}HGTD_RDOs")
16 kwargs.setdefault(
"OutputKey",
"HGTD_RDOs")
18 if flags.Overlay.ByteStream:
21 from SGComps.SGInputLoaderConfig
import SGInputLoaderCfg
22 acc.merge(
SGInputLoaderCfg(flags, [f
'HGTD_RDO_Container#{kwargs["BkgInputKey"]}']))
25 acc.addEventAlgo(CompFactory.HGTD_Overlay(name, **kwargs))
28 if flags.Output.doWriteRDO:
29 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
31 "HGTD_RDO_Container#HGTD_RDOs"
34 if flags.Output.doWriteRDO_SGNL:
35 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
37 f
"HGTD_RDO_Container#{flags.Overlay.SigPrefix}HGTD_RDOs"
44 """Return a ComponentAccumulator for the HGTD SDO overlay algorithm"""
48 kwargs.setdefault(
"BkgInputKey",
"")
50 kwargs.setdefault(
"SignalInputKey", f
"{flags.Overlay.SigPrefix}HGTD_SDO_Map")
51 kwargs.setdefault(
"OutputKey",
"HGTD_SDO_Map")
54 acc.addEventAlgo(CompFactory.InDetSDOOverlay(name, **kwargs))
57 if flags.Output.doWriteRDO:
58 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
60 "InDetSimDataCollection#HGTD_SDO_Map"
63 if flags.Output.doWriteRDO_SGNL:
64 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
66 f
"InDetSimDataCollection#{flags.Overlay.SigPrefix}HGTD_SDO_Map"
73 """Configure and return a ComponentAccumulator for HGTD overlay"""
77 from HGTD_Digitization.HGTD_DigitizationConfig
import HGTD_OverlayDigitizationBasicCfg
84 if flags.Digitization.EnableTruth: