File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 2525#include " Framework/FairMQDeviceProxy.h"
2626#include " Framework/Formatters.h"
2727#include " Framework/DeviceState.h"
28+ #include " Framework/DataTakingContext.h"
2829#include " Framework/Signpost.h"
2930
3031#include " Headers/DataHeader.h"
@@ -421,6 +422,11 @@ ExpirationHandler::Handler LifetimeHelpers::enumerate(ConcreteDataMatcher const&
421422 dh.payloadSize = sizeof (counter_t );
422423 dh.payloadSerializationMethod = gSerializationMethodNone ;
423424 dh.tfCounter = timestamp;
425+ try {
426+ dh.runNumber = atoi (services.get <DataTakingContext>().runNumber .c_str ());
427+ } catch (...) {
428+ dh.runNumber = 0 ;
429+ }
424430 dh.firstTForbit = timestamp * orbitMultiplier + orbitOffset;
425431 DataProcessingHeader dph{timestamp, 1 };
426432 services.get <CallbackService>().call <CallbackService::Id::NewTimeslice>(dh, dph);
You can’t perform that action at this time.
0 commit comments