Skip to content

Commit bdd96b9

Browse files
committed
do not count meta events in total event count in the DAT file
1 parent 48adff1 commit bdd96b9

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

EventFilter/Utilities/plugins/GlobalEvFOutputModule.cc

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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());

0 commit comments

Comments
 (0)