55 void endJob()
override;
66 std::vector<edm::EventID>
ids_;
67 mutable std::atomic<unsigned int>
index_;
84 ids_(iConfig.getUntrackedParameter<
std::vector<
edm::EventID> >(
"eventSequence")),
86 unorderedEvents_(iConfig.getUntrackedParameter<
bool>(
"unorderedEvents"))
104 throw cms::Exception(
"TooManyEvents") <<
"Was passes " <<
ids_.size() <<
" EventIDs but have processed more events than that\n";
108 if(itFound ==
ids_.end()) {
109 throw cms::Exception(
"UnexpecedEvent") <<
"The event "<<iEventID<<
" was not expected.";
113 throw cms::Exception(
"WrongEvent") <<
"Was expecting event " <<
ids_[
index_] <<
" but was given " << iEventID <<
"\n";
125 std::shared_ptr<rlec::Cache>
128 return std::shared_ptr<rlec::Cache>{};
135 std::shared_ptr<rlec::Cache>
138 return std::shared_ptr<rlec::Cache>{};
164 desc.
addUntracked<std::vector<edm::EventID> >(
"eventSequence");
166 descriptions.
add(
"runLumiEventIDChecker", desc);
LuminosityBlockID id() const
std::shared_ptr< rlec::Cache > globalBeginLuminosityBlock(edm::LuminosityBlock const &lumi, edm::EventSetup const &es) const override
std::vector< edm::EventID > ids_
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
virtual example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
void check(edm::EventID const &iID, bool isEvent) const
#define DEFINE_FWK_MODULE(type)
void globalEndRun(edm::Run const &run, edm::EventSetup const &es) const override
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
std::shared_ptr< rlec::Cache > globalBeginRun(edm::Run const &run, edm::EventSetup const &es) const override
RunLumiEventChecker(edm::ParameterSet const &)
void globalEndLuminosityBlock(edm::LuminosityBlock const &lumi, edm::EventSetup const &es) const override
void analyze(edm::StreamID, edm::Event const &, edm::EventSetup const &) const override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::atomic< unsigned int > index_
~RunLumiEventChecker() override
LuminosityBlockNumber_t luminosityBlock() const
void add(std::string const &label, ParameterSetDescription const &psetDescription)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)