Skip to content

Commit 3d967a1

Browse files
authored
DPL Analysis: workaround to publish histograms also with pipelining (#13980)
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.
1 parent 43d48b1 commit 3d967a1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Framework/Core/include/Framework/AnalysisManagers.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ struct OutputManager<HistogramRegistry> {
287287
auto& deviceSpec = context.services().get<o2::framework::DeviceSpec const>();
288288
context.outputs().snapshot(what.ref(deviceSpec.inputTimesliceId, deviceSpec.maxInputTimeslices), *(what.getListOfHistograms()));
289289
what.clean();
290+
sleep(deviceSpec.inputTimesliceId);
290291
return true;
291292
}
292293
};
@@ -314,6 +315,7 @@ struct OutputManager<OutputObj<T>> {
314315
{
315316
auto& deviceSpec = context.services().get<o2::framework::DeviceSpec const>();
316317
context.outputs().snapshot(what.ref(deviceSpec.inputTimesliceId, deviceSpec.maxInputTimeslices), *what);
318+
sleep(deviceSpec.inputTimesliceId);
317319
return true;
318320
}
319321
};

0 commit comments

Comments
 (0)