File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
EventFilter/Utilities/plugins Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -76,10 +76,11 @@ namespace evf {
7676 return (discarded_ || edm::Service<evf::EvFDaqDirector>()->lumisectionDiscarded (ls_));
7777 }
7878
79- void doOutputEvent (EventMsgBuilder const & msg) {
79+ void doOutputEvent (EventMsgBuilder const & msg, bool inc ) {
8080 EventMsgView eview (msg.startAddress ());
8181 stream_writer_events_->write (eview);
82- incAccepted ();
82+ if (inc)
83+ incAccepted ();
8384 }
8485
8586 void doOutputEventAsync (std::unique_ptr<EventMsgBuilder> msg, edm::WaitingTaskHolder iHolder) {
@@ -97,9 +98,9 @@ namespace evf {
9798 if (meta_) {
9899 auto m = std::move (meta_);
99100 assert (m->builder_ );
100- doOutputEvent (*m->builder_ );
101+ doOutputEvent (*m->builder_ , false );
101102 }
102- doOutputEvent (*msg); // msg is written and discarded at this point
103+ doOutputEvent (*msg, true ); // msg is written and discarded at this point
103104 } catch (...) {
104105 auto tmp = holder;
105106 tmp.doneWaiting (std::current_exception ());
You can’t perform that action at this time.
0 commit comments