50 std::vector<edm::EventID>
ids_;
66 : ids_(iConfig.getUntrackedParameter<
std::
vector<
edm::EventID> >(
"eventsToAbort")),
67 throwException_(iConfig.getUntrackedParameter<
bool>(
"throwExceptionInsteadOfAbort")) {
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 auto 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);
std::vector< edm::EventID > ids_
#define DEFINE_FWK_MODULE(type)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
~AbortOnEventIDAnalyzer() override
void analyze(edm::StreamID, edm::Event const &, edm::EventSetup const &) const override
void add(std::string const &label, ParameterSetDescription const &psetDescription)
AbortOnEventIDAnalyzer(edm::ParameterSet const &)
EventNumber_t event() const