diff --git a/Framework/Core/src/LifetimeHelpers.cxx b/Framework/Core/src/LifetimeHelpers.cxx index 657bdcb40326b..4621738ec154e 100644 --- a/Framework/Core/src/LifetimeHelpers.cxx +++ b/Framework/Core/src/LifetimeHelpers.cxx @@ -25,6 +25,7 @@ #include "Framework/FairMQDeviceProxy.h" #include "Framework/Formatters.h" #include "Framework/DeviceState.h" +#include "Framework/DataTakingContext.h" #include "Framework/Signpost.h" #include "Headers/DataHeader.h" @@ -421,6 +422,11 @@ ExpirationHandler::Handler LifetimeHelpers::enumerate(ConcreteDataMatcher const& dh.payloadSize = sizeof(counter_t); dh.payloadSerializationMethod = gSerializationMethodNone; dh.tfCounter = timestamp; + try { + dh.runNumber = atoi(services.get().runNumber.c_str()); + } catch (...) { + dh.runNumber = 0; + } dh.firstTForbit = timestamp * orbitMultiplier + orbitOffset; DataProcessingHeader dph{timestamp, 1}; services.get().call(dh, dph);