From 74706e143e74b48f942b8c984a870efda2b826d7 Mon Sep 17 00:00:00 2001 From: Srecko Date: Tue, 18 Jun 2024 12:44:24 +0200 Subject: [PATCH] do not count meta events in total event count in the DAT file --- EventFilter/Utilities/plugins/GlobalEvFOutputModule.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/EventFilter/Utilities/plugins/GlobalEvFOutputModule.cc b/EventFilter/Utilities/plugins/GlobalEvFOutputModule.cc index c4c0507c7afd9..9318e35f4a44d 100644 --- a/EventFilter/Utilities/plugins/GlobalEvFOutputModule.cc +++ b/EventFilter/Utilities/plugins/GlobalEvFOutputModule.cc @@ -76,10 +76,11 @@ namespace evf { return (discarded_ || edm::Service()->lumisectionDiscarded(ls_)); } - void doOutputEvent(EventMsgBuilder const& msg) { + void doOutputEvent(EventMsgBuilder const& msg, bool inc) { EventMsgView eview(msg.startAddress()); stream_writer_events_->write(eview); - incAccepted(); + if (inc) + incAccepted(); } void doOutputEventAsync(std::unique_ptr msg, edm::WaitingTaskHolder iHolder) { @@ -97,9 +98,9 @@ namespace evf { if (meta_) { auto m = std::move(meta_); assert(m->builder_); - doOutputEvent(*m->builder_); + doOutputEvent(*m->builder_, false); } - doOutputEvent(*msg); //msg is written and discarded at this point + doOutputEvent(*msg, true); //msg is written and discarded at this point } catch (...) { auto tmp = holder; tmp.doneWaiting(std::current_exception());