From 8b9ad484b288ea112935a5df0266763e93012a3e Mon Sep 17 00:00:00 2001 From: Giulio Eulisse <10544+ktf@users.noreply.github.com> Date: Tue, 18 Feb 2025 16:25:43 +0100 Subject: [PATCH] DPL Analysis: workaround to publish histograms also with pipelining For some reason if the histograms arrive all at once, they get dropped. Not yet sure why that happens. It clearly cannot merely be a matter of "older possible timeframe" being wrong, nor a problem with the order of the end of stream, because otherwise I would expect also this to fail. --- Framework/Core/include/Framework/AnalysisManagers.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Framework/Core/include/Framework/AnalysisManagers.h b/Framework/Core/include/Framework/AnalysisManagers.h index 30ebf1799b227..ca42a0aca42db 100644 --- a/Framework/Core/include/Framework/AnalysisManagers.h +++ b/Framework/Core/include/Framework/AnalysisManagers.h @@ -287,6 +287,7 @@ struct OutputManager { auto& deviceSpec = context.services().get(); context.outputs().snapshot(what.ref(deviceSpec.inputTimesliceId, deviceSpec.maxInputTimeslices), *(what.getListOfHistograms())); what.clean(); + sleep(deviceSpec.inputTimesliceId); return true; } }; @@ -314,6 +315,7 @@ struct OutputManager> { { auto& deviceSpec = context.services().get(); context.outputs().snapshot(what.ref(deviceSpec.inputTimesliceId, deviceSpec.maxInputTimeslices), *what); + sleep(deviceSpec.inputTimesliceId); return true; } };