|
|
Go to the documentation of this file.
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);
void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
void endRun(edm::Run const &, edm::EventSetup const &) override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
unsigned int LuminosityBlockNumber_t
unsigned int numberOfEventsLeftBeforeSearch_
void analyze(edm::Event const &, edm::EventSetup const &) override
void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
#define DEFINE_FWK_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
LuminosityBlockNumber_t luminosityBlock() const
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
EventIDChecker(edm::ParameterSet const &)
EventNumber_t event() const
unsigned int multiProcessSequentialEvents_
~EventIDChecker() override
edm::LuminosityBlockNumber_t presentLumi_
edm::RunNumber_t presentRun_
std::vector< edm::EventID > ids_
void beginRun(edm::Run const &, edm::EventSetup const &) override