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");
158 descriptions.
add(
"runLumiEventIDChecker", desc);
LuminosityBlockID id() const
std::vector< edm::EventID > ids_
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
void check(edm::EventID const &iID, bool isEvent) const
#define DEFINE_FWK_MODULE(type)
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
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_
~RunLumiEventChecker() override
LuminosityBlockNumber_t luminosityBlock() const
void add(std::string const &label, ParameterSetDescription const &psetDescription)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)