68 std::vector<edm::EventID>
ids_;
69 mutable std::atomic<unsigned int>
index_;
85 : ids_(iConfig.getUntrackedParameter<
std::
vector<
edm::EventID>>(
"eventSequence")),
87 unorderedEvents_(iConfig.getUntrackedParameter<
bool>(
"unorderedEvents")) {
103 <<
"Was passes " <<
ids_.size() <<
" EventIDs but have processed more events than that\n";
107 if (itFound ==
ids_.end()) {
108 throw cms::Exception(
"UnexpecedEvent") <<
"The event " << iEventID <<
" was not expected.";
126 return std::shared_ptr<rlec::Cache>{};
135 return std::shared_ptr<rlec::Cache>{};
149 <<
"Saw " <<
index_ <<
" events but was supposed to see " <<
ids_.size() <<
"\n";
156 desc.addUntracked<std::vector<edm::EventID>>(
"eventSequence");
157 desc.addUntracked<
bool>(
"unorderedEvents",
false);
158 descriptions.
add(
"runLumiEventIDChecker",
desc);