21 :
public edm::global::EDProducer<edm::StreamCache<Cache>, edm::RunCache<Cache>, edm::LuminosityBlockCache<Cache>> {
56 : eventIDThrowOnEvent_(
pset.getUntrackedParameter<
edm::EventID>(
"eventIDThrowOnEvent")),
57 eventIDThrowOnGlobalBeginRun_(
pset.getUntrackedParameter<
edm::EventID>(
"eventIDThrowOnGlobalBeginRun")),
58 eventIDThrowOnGlobalBeginLumi_(
pset.getUntrackedParameter<
edm::EventID>(
"eventIDThrowOnGlobalBeginLumi")),
59 eventIDThrowOnGlobalEndRun_(
pset.getUntrackedParameter<
edm::EventID>(
"eventIDThrowOnGlobalEndRun")),
60 eventIDThrowOnGlobalEndLumi_(
pset.getUntrackedParameter<
edm::EventID>(
"eventIDThrowOnGlobalEndLumi")),
61 eventIDThrowOnStreamBeginRun_(
pset.getUntrackedParameter<
edm::EventID>(
"eventIDThrowOnStreamBeginRun")),
62 eventIDThrowOnStreamBeginLumi_(
pset.getUntrackedParameter<
edm::EventID>(
"eventIDThrowOnStreamBeginLumi")),
63 eventIDThrowOnStreamEndRun_(
pset.getUntrackedParameter<
edm::EventID>(
"eventIDThrowOnStreamEndRun")),
64 eventIDThrowOnStreamEndLumi_(
pset.getUntrackedParameter<
edm::EventID>(
"eventIDThrowOnStreamEndLumi")) {}
71 <<
"ExceptionThrowingProducer::produce, module configured to throw on: " <<
eventIDThrowOnEvent_;
79 <<
"ExceptionThrowingProducer::globalBeginRun, module configured to throw on: " 82 return std::make_shared<Cache>();
98 <<
"ExceptionThrowingProducer::globalBeginLuminosityBlock, module configured to throw on: " 101 return std::make_shared<Cache>();
109 <<
"ExceptionThrowingProducer::globalEndLuminosityBlock, module configured to throw on: " 115 return std::make_unique<Cache>();
121 if (iStream.
value() == 0 &&
125 <<
"ExceptionThrowingProducer::streamBeginRun, module configured to throw on: " 136 <<
"ExceptionThrowingProducer::streamBeginLuminosityBlock, module configured to throw on: " 147 <<
"ExceptionThrowingProducer::streamEndLuminosityBlock, module configured to throw on: " 155 if (iStream.
value() == 0 &&
167 desc.addUntracked<
edm::EventID>(
"eventIDThrowOnGlobalBeginRun", invalidEventID);
168 desc.addUntracked<
edm::EventID>(
"eventIDThrowOnGlobalBeginLumi", invalidEventID);
169 desc.addUntracked<
edm::EventID>(
"eventIDThrowOnGlobalEndRun", invalidEventID);
170 desc.addUntracked<
edm::EventID>(
"eventIDThrowOnGlobalEndLumi", invalidEventID);
171 desc.addUntracked<
edm::EventID>(
"eventIDThrowOnStreamBeginRun", invalidEventID);
172 desc.addUntracked<
edm::EventID>(
"eventIDThrowOnStreamBeginLumi", invalidEventID);
173 desc.addUntracked<
edm::EventID>(
"eventIDThrowOnStreamEndRun", invalidEventID);
174 desc.addUntracked<
edm::EventID>(
"eventIDThrowOnStreamEndLumi", invalidEventID);
edm::EventID eventIDThrowOnGlobalBeginRun_
edm::EventID eventIDThrowOnEvent_
std::shared_ptr< Cache > globalBeginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) const override
std::unique_ptr< Cache > beginStream(edm::StreamID) const override
~ExceptionThrowingProducer() override
static void fillDescriptions(edm::ConfigurationDescriptions &)
edm::EventID eventIDThrowOnStreamBeginRun_
void produce(edm::StreamID, edm::Event &, edm::EventSetup const &) const override
EventNumber_t const invalidEventNumber
void addDefault(ParameterSetDescription const &psetDescription)
edm::EventID eventIDThrowOnStreamEndRun_
edm::EventID eventIDThrowOnStreamBeginLumi_
#define DEFINE_FWK_MODULE(type)
void streamBeginLuminosityBlock(edm::StreamID, edm::LuminosityBlock const &, edm::EventSetup const &) const override
void streamBeginRun(edm::StreamID, edm::Run const &, edm::EventSetup const &) const override
LuminosityBlockNumber_t const invalidLuminosityBlockNumber
void globalEndLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) const override
std::shared_ptr< Cache > globalBeginRun(edm::Run const &, edm::EventSetup const &) const override
ExceptionThrowingProducer(edm::ParameterSet const &)
void streamEndRun(edm::StreamID, edm::Run const &, edm::EventSetup const &) const override
void streamEndLuminosityBlock(edm::StreamID, edm::LuminosityBlock const &, edm::EventSetup const &) const override
edm::EventID eventIDThrowOnStreamEndLumi_
void globalEndRun(edm::Run const &, edm::EventSetup const &) const override
edm::EventID eventIDThrowOnGlobalEndLumi_
unsigned int value() const
edm::EventID eventIDThrowOnGlobalEndRun_
edm::EventID eventIDThrowOnGlobalBeginLumi_