Skip to content

Commit

Permalink
RawFileReader: Fix triggering CCDB message
Browse files Browse the repository at this point in the history
  • Loading branch information
davidrohr committed Oct 20, 2023
1 parent 06d1e2f commit 324b957
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Detectors/Raw/src/RawFileReaderWorkflow.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -348,10 +348,16 @@ void RawReaderSpecs::run(o2f::ProcessingContext& ctx)
if (mTFCounter) { // delay sending
std::this_thread::sleep_for(std::chrono::microseconds((size_t)mDelayUSec));
}
bool sentSomething = false;
for (auto& msgIt : messagesPerRoute) {
LOG(info) << "Sending " << msgIt.second->Size() / 2 << " parts to channel " << msgIt.first;
device->Send(*msgIt.second.get(), msgIt.first);
sentSomething = msgIt.second->Size() > 0;
}
if (sentSomething) {
ctx.services().get<o2f::MessageContext>().fakeDispatch();
}

mTimer.Stop();

LOGP(info, "Sent payload of {} bytes in {} parts in {} messages for TF#{} firstTForbit={} timeStamp={} | Timing: {}", tfSize, tfNParts,
Expand Down

0 comments on commit 324b957

Please sign in to comment.