52 virtual void endJob()
override;
63 std::vector<edm::EventID>
ids_;
81 ids_(iConfig.getUntrackedParameter<
std::vector<
edm::EventID> >(
"eventSequence")),
100 throw cms::Exception(
"TooManyEvents") <<
"Was passes " <<
ids_.size() <<
" EventIDs but have processed more events than that\n";
103 throw cms::Exception(
"WrongEvent") <<
"Was expecting event " <<
ids_[
index_] <<
" but was given " << iEventID <<
"\n";
151 desc.
addUntracked<std::vector<edm::EventID> >(
"eventSequence");
152 descriptions.
add(
"runLumiEventIDChecker", desc);
LuminosityBlockID id() const
virtual void beginJob() override
std::vector< edm::EventID > ids_
virtual void endJob() override
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
#define DEFINE_FWK_MODULE(type)
std::map< edm::EventID, unsigned int > seenIDs_
RunLumiEventChecker(edm::ParameterSet const &)
virtual void analyze(edm::Event const &, edm::EventSetup const &) override
void check(edm::EventID const &iID, bool isEvent)
virtual void beginRun(edm::Run const &run, edm::EventSetup const &es) override
virtual void beginLuminosityBlock(edm::LuminosityBlock const &lumi, edm::EventSetup const &es) override
LuminosityBlockNumber_t luminosityBlock() const
void add(std::string const &label, ParameterSetDescription const &psetDescription)
virtual void endRun(edm::Run const &run, edm::EventSetup const &es) override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
virtual void endLuminosityBlock(edm::LuminosityBlock const &lumi, edm::EventSetup const &es) override