49 std::vector<edm::EventID>
ids_;
69 :
ids_(iConfig.getUntrackedParameter<
std::vector<
edm::EventID> >(
"eventSequence")),
87 struct CompareWithoutLumi {
88 CompareWithoutLumi(
edm::EventID const& iThis) : m_this(iThis) {}
90 return m_this.run() == iOther.
run() && m_this.event() == iOther.
event();
102 std::vector<edm::EventID>::iterator itFind =
103 std::find_if(
ids_.begin() +
index_,
ids_.end(), CompareWithoutLumi(iEvent.
id()));
104 if (itFind ==
ids_.end()) {
105 throw cms::Exception(
"MissedEvent") <<
"The event " << iEvent.
id() <<
"is not in the list.\n";
114 <<
"Was passes " <<
ids_.size() <<
" EventIDs but have processed more events than that\n";
132 desc.
addUntracked<std::vector<edm::EventID> >(
"eventSequence");
133 desc.
addUntracked<
unsigned int>(
"multiProcessSequentialEvents", 0
U);
134 descriptions.
add(
"eventIDChecker", desc);
EventNumber_t event() const
~EventIDChecker() override
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
unsigned int multiProcessSequentialEvents_
#define DEFINE_FWK_MODULE(type)
void analyze(edm::Event const &, edm::EventSetup const &) override
std::vector< edm::EventID > ids_
unsigned int numberOfEventsLeftBeforeSearch_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
EventIDChecker(edm::ParameterSet const &)