53 std::vector<edm::EventID>
ids_;
75 : ids_(iConfig.getUntrackedParameter<
std::
vector<
edm::EventID> >(
"eventSequence")),
77 multiProcessSequentialEvents_(iConfig.getUntrackedParameter<unsigned
int>(
"multiProcessSequentialEvents")),
78 numberOfEventsLeftBeforeSearch_(0),
93 struct CompareWithoutLumi {
94 CompareWithoutLumi(
edm::EventID const& iThis) : m_this(iThis) {}
96 return m_this.run() == iOther.
run() && m_this.event() == iOther.
event();
108 std::vector<edm::EventID>::iterator itFind =
110 if (itFind ==
ids_.end()) {
120 <<
"Was passes " <<
ids_.size() <<
" EventIDs but have processed more events than that\n";
133 <<
"expected LuminosityBlock " <<
presentLumi_ <<
" but got " <<
iEvent.luminosityBlock();
143 <<
"at beginLuminosityBlock expected Run " <<
presentRun_ <<
" but got " << iLumi.
run();
151 <<
"at endLuminosityBlock expected Run " <<
presentRun_ <<
" but got " << iLumi.
run();
173 desc.addUntracked<std::vector<edm::EventID> >(
"eventSequence");
174 desc.addUntracked<
unsigned int>(
"multiProcessSequentialEvents", 0
U);
175 descriptions.
add(
"eventIDChecker",
desc);
~EventIDChecker() override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
unsigned int multiProcessSequentialEvents_
unsigned int LuminosityBlockNumber_t
void analyze(edm::Event const &, edm::EventSetup const &) override
void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
#define DEFINE_FWK_MODULE(type)
edm::RunNumber_t presentRun_
std::vector< edm::EventID > ids_
unsigned int numberOfEventsLeftBeforeSearch_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
EventIDChecker(edm::ParameterSet const &)
void endRun(edm::Run const &, edm::EventSetup const &) override
void beginRun(edm::Run const &, edm::EventSetup const &) override
LuminosityBlockNumber_t luminosityBlock() const
void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
EventNumber_t event() const
edm::LuminosityBlockNumber_t presentLumi_