Go to the documentation of this file.
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);
void check(edm::EventID const &iID, bool isEvent) const
void globalEndLuminosityBlock(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)
void analyze(edm::StreamID, edm::Event const &, edm::EventSetup const &) const override
std::vector< edm::EventID > ids_
#define DEFINE_FWK_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::shared_ptr< rlec::Cache > globalBeginLuminosityBlock(edm::LuminosityBlock const &lumi, edm::EventSetup const &es) const override
std::shared_ptr< rlec::Cache > globalBeginRun(edm::Run const &run, edm::EventSetup const &es) const override
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
std::atomic< unsigned int > index_
~RunLumiEventChecker() override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void globalEndRun(edm::Run const &run, edm::EventSetup const &es) const override
RunLumiEventChecker(edm::ParameterSet const &)