From 4cd14b3bcddb55f6f6762351e9104c937903e331 Mon Sep 17 00:00:00 2001 From: Thomas Madlener Date: Tue, 10 Dec 2024 14:29:02 +0100 Subject: [PATCH] Add a warning output for potential issues --- k4MarlinWrapper/src/components/MarlinProcessorWrapper.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/k4MarlinWrapper/src/components/MarlinProcessorWrapper.cpp b/k4MarlinWrapper/src/components/MarlinProcessorWrapper.cpp index 329ade25..70c76233 100644 --- a/k4MarlinWrapper/src/components/MarlinProcessorWrapper.cpp +++ b/k4MarlinWrapper/src/components/MarlinProcessorWrapper.cpp @@ -210,7 +210,7 @@ StatusCode MarlinProcessorWrapper::initialize() { } StatusCode MarlinProcessorWrapper::execute(const EventContext&) const { - // Get flag to know if there was an underlying LCEvent + // Get flag to check if this processor should be skipped or not DataObject* pStatus = nullptr; StatusCode scStatus = eventSvc()->retrieveObject("/Event/LCEventStatus", pStatus); if (scStatus.isSuccess()) { @@ -275,6 +275,9 @@ StatusCode MarlinProcessorWrapper::execute(const EventContext&) const { // Handle exceptions that may come from Marlin catch (marlin::SkipEventException& e) { + warning() << "Caught marlin::SkipEventException. Skipping the wrapped Processors, but Gaudi Algorithms will still " + "execute and may fail" + << endmsg; // Store flag to prevent the rest of the event from processing auto upStatus = std::make_unique(false); const StatusCode code = eventSvc()->registerObject("/Event/LCEventStatus", upStatus.release());