diff --git a/Simulation/Overlay/OverlayCopyAlgs/python/OverlayCopyAlgsConfig.py b/Simulation/Overlay/OverlayCopyAlgs/python/OverlayCopyAlgsConfig.py index f0cca4777e3cc7d6f883a87b68b98abd586e1c2a..941cce7341a33d1adf510b2cd407587cacdec57e 100644 --- a/Simulation/Overlay/OverlayCopyAlgs/python/OverlayCopyAlgsConfig.py +++ b/Simulation/Overlay/OverlayCopyAlgs/python/OverlayCopyAlgsConfig.py @@ -170,7 +170,11 @@ def CopyMcEventCollectionCfg(flags, name="CopyMcEventCollection", **kwargs): inputs.append(f'McEventCollection#{kwargs["BkgInputKey"]}') kwargs.setdefault("SignalInputKey", f"{flags.Overlay.SigPrefix}TruthEvent") inputs.append(f'McEventCollection#{kwargs["SignalInputKey"]}') - kwargs.setdefault("OutputKey", "TruthEvent") + + if flags.Sim.DoFullChain and flags.Common.isOverlay: + kwargs.setdefault("OutputKey", "BeamTruthEvent") + else: + kwargs.setdefault("OutputKey", "TruthEvent") from SGComps.SGInputLoaderConfig import SGInputLoaderCfg acc.merge(SGInputLoaderCfg(flags, inputs))