9 : alg_(iConfig.getParameter<
int>(
"offsetDelta"),
10 iConfig.getParameter<
int>(
"nThings"),
11 iConfig.getParameter<
bool>(
"grow")),
12 noPut_(iConfig.getUntrackedParameter<
bool>(
"noPut"))
14 evToken_ = produces<ThingCollection>();
15 blToken_ = produces<ThingCollection, edm::Transition::BeginLuminosityBlock>(
"beginLumi");
16 elToken_ = produces<ThingCollection, edm::Transition::EndLuminosityBlock>(
"endLumi");
17 brToken_ = produces<ThingCollection, edm::Transition::BeginRun>(
"beginRun");
18 erToken_ = produces<ThingCollection, edm::Transition::EndRun>(
"endRun");
99 desc.add<
int>(
"offsetDelta", 0)
101 "How much extra to increment the value used when creating Things for a new container. E.g. the last value " 102 "used to create Thing from the previous event is incremented by 'offsetDelta' to compute the value to use " 103 "of the first Thing created in the next Event.");
104 desc.add<
int>(
"nThings", 20)->setComment(
"How many Things to put in each collection.");
105 desc.add<
bool>(
"grow",
false)
106 ->setComment(
"If true, multiply 'nThings' by the value of offset for each run of the algorithm.");
107 desc.addUntracked<
bool>(
"noPut",
false)
108 ->setComment(
"If true, data is not put into the Principal. This is used to test missing products.");
109 descriptions.
add(
"thingProd",
desc);
void globalBeginRunProduce(edm::Run &r, edm::EventSetup const &c) const override
void produce(edm::StreamID, edm::Event &e, edm::EventSetup const &c) const override
~ThingProducer() override
void globalEndLuminosityBlockProduce(edm::LuminosityBlock &lb, edm::EventSetup const &c) const override
edm::EDPutTokenT< ThingCollection > evToken_
edm::EDPutTokenT< ThingCollection > elToken_
#define DEFINE_FWK_MODULE(type)
void globalBeginLuminosityBlockProduce(edm::LuminosityBlock &lb, edm::EventSetup const &c) const override
void run(ThingCollection &thingCollection) const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
ThingProducer(edm::ParameterSet const &ps)
void emplace(EDPutTokenT< PROD > token, Args &&... args)
puts a new product
void globalEndRunProduce(edm::Run &r, edm::EventSetup const &c) const override
void add(std::string const &label, ParameterSetDescription const &psetDescription)
edm::EDPutTokenT< ThingCollection > blToken_
edm::EDPutTokenT< ThingCollection > erToken_
edm::EDPutTokenT< ThingCollection > brToken_