From 31866287349bfb6d33e6d21ab016d0e05fed831e Mon Sep 17 00:00:00 2001 From: Andreas Stefl Date: Thu, 5 Dec 2024 09:28:26 +0100 Subject: [PATCH] fix silly --- .../Algorithms/Digitization/src/DigitizationAlgorithm.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Examples/Algorithms/Digitization/src/DigitizationAlgorithm.cpp b/Examples/Algorithms/Digitization/src/DigitizationAlgorithm.cpp index 6fc6602467a..e55ac39d09b 100644 --- a/Examples/Algorithms/Digitization/src/DigitizationAlgorithm.cpp +++ b/Examples/Algorithms/Digitization/src/DigitizationAlgorithm.cpp @@ -310,13 +310,14 @@ ProcessCode DigitizationAlgorithm::execute(const AlgorithmContext& ctx) const { m_outputMeasurements(ctx, std::move(measurements)); m_outputClusters(ctx, std::move(clusters)); - m_outputMeasurementParticlesMap(ctx, std::move(measurementParticlesMap)); - m_outputMeasurementSimHitsMap(ctx, std::move(measurementSimHitsMap)); - + // invert them before they are moved m_outputParticleMeasurementsMap( ctx, invertIndexMultimap(measurementParticlesMap)); m_outputSimHitMeasurementsMap(ctx, invertIndexMultimap(measurementSimHitsMap)); + + m_outputMeasurementParticlesMap(ctx, std::move(measurementParticlesMap)); + m_outputMeasurementSimHitsMap(ctx, std::move(measurementSimHitsMap)); } if (m_cfg.doOutputCells) {