Skip to content

Commit 6c54d23

Browse files
ktfehellbar
authored andcommitted
DPL: set run number also on EoS
1 parent 24c97f2 commit 6c54d23

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Framework/Core/src/ExternalFairMQDeviceProxy.cxx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -977,11 +977,18 @@ DataProcessorSpec specifyFairMQDeviceOutputProxy(char const* name,
977977
if (channelName != outputChannelName) {
978978
continue;
979979
}
980+
981+
uint32_t runNumber = 0;
982+
try {
983+
runNumber = strtoul(device->fConfig->GetProperty<std::string>("runNumber", "").c_str(), nullptr, 10);
984+
} catch (...) {
985+
}
980986
DataHeader dh;
981987
dh.dataOrigin = "DPL";
982988
dh.dataDescription = "EOS";
983989
dh.subSpecification = 0;
984990
dh.payloadSize = 0;
991+
dh.runNumber = runNumber;
985992
dh.payloadSerializationMethod = o2::header::gSerializationMethodNone;
986993
dh.tfCounter = 0;
987994
dh.firstTForbit = 0;

0 commit comments

Comments
 (0)