50 std::vector<edm::EventID>
ids_;
66 :
ids_(iConfig.getUntrackedParameter<
std::vector<
edm::EventID> >(
"eventsToAbort")),
81 struct CompareWithoutLumi {
82 CompareWithoutLumi(
edm::EventID const& iThis) : m_this(iThis) {}
84 return m_this.run() == iOther.
run() && m_this.event() == iOther.
event();
92 std::vector<edm::EventID>::iterator itFind = std::find_if(
ids_.begin(),
ids_.end(), CompareWithoutLumi(iEvent.
id()));
93 if (itFind !=
ids_.end()) {
111 desc.
addUntracked<std::vector<edm::EventID> >(
"eventsToAbort");
112 desc.
addUntracked<
bool>(
"throwExceptionInsteadOfAbort",
false);
113 descriptions.
add(
"abortOnEventID", desc);
EventNumber_t event() const
std::vector< edm::EventID > ids_
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
#define DEFINE_FWK_MODULE(type)
~AbortOnEventIDAnalyzer() override
void add(std::string const &label, ParameterSetDescription const &psetDescription)
AbortOnEventIDAnalyzer(edm::ParameterSet const &)
void analyze(edm::Event const &, edm::EventSetup const &) override