diff --git a/k4MarlinWrapper/src/components/MarlinProcessorWrapper.cpp b/k4MarlinWrapper/src/components/MarlinProcessorWrapper.cpp index 9343ff3d..645385e0 100644 --- a/k4MarlinWrapper/src/components/MarlinProcessorWrapper.cpp +++ b/k4MarlinWrapper/src/components/MarlinProcessorWrapper.cpp @@ -268,7 +268,7 @@ StatusCode MarlinProcessorWrapper::execute(const EventContext&) const { m_processor->processEvent(the_event); } - m_processor->setFirstEvent(false, marlin::ExternalProcessorMgrAccessor{this}); + m_processor->setFirstEvent(false, marlin::ExternalProcessorMgrAccessor{const_cast(this)}); } // Handle exceptions that may come from Marlin