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);
std::vector< edm::EventID > ids_
void globalEndLuminosityBlock(edm::LuminosityBlock const &lumi, edm::EventSetup const &es) const override
std::shared_ptr< rlec::Cache > globalBeginLuminosityBlock(edm::LuminosityBlock const &lumi, edm::EventSetup const &es) const override
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
RunLumiEventChecker(edm::ParameterSet const &)
std::shared_ptr< rlec::Cache > globalBeginRun(edm::Run const &run, edm::EventSetup const &es) const override
#define DEFINE_FWK_MODULE(type)
void analyze(edm::StreamID, edm::Event const &, edm::EventSetup const &) const override
void globalEndRun(edm::Run const &run, edm::EventSetup const &es) const override
std::atomic< unsigned int > index_
void check(edm::EventID const &iID, bool isEvent) const
~RunLumiEventChecker() override
void add(std::string const &label, ParameterSetDescription const &psetDescription)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)