Skip to content

Commit

Permalink
DPL Analysis: workaround to publish histograms also with pipelining
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ktf committed Feb 18, 2025
1 parent 66e56fe commit 8b9ad48
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Framework/Core/include/Framework/AnalysisManagers.h
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ struct OutputManager<HistogramRegistry> {
auto& deviceSpec = context.services().get<o2::framework::DeviceSpec const>();
context.outputs().snapshot(what.ref(deviceSpec.inputTimesliceId, deviceSpec.maxInputTimeslices), *(what.getListOfHistograms()));
what.clean();
sleep(deviceSpec.inputTimesliceId);
return true;
}
};
Expand Down Expand Up @@ -314,6 +315,7 @@ struct OutputManager<OutputObj<T>> {
{
auto& deviceSpec = context.services().get<o2::framework::DeviceSpec const>();
context.outputs().snapshot(what.ref(deviceSpec.inputTimesliceId, deviceSpec.maxInputTimeslices), *what);
sleep(deviceSpec.inputTimesliceId);
return true;
}
};
Expand Down

0 comments on commit 8b9ad48

Please sign in to comment.