15 #include "DataFormats/TestObjects/interface/ToyProducts.h" 52 : eventToken_(producesCollector.produces<IntProduct>()),
53 eventWithInstanceToken_(producesCollector.produces<IntProduct>(
"event")),
54 eventWithTransitionToken_(producesCollector.produces<UInt64Product,
edm::
Transition::
Event>()),
55 eventUsingTypeIDToken_(producesCollector.produces(
edm::TypeID(typeid(IntProduct)),
"eventOther")),
56 brToken_(producesCollector.produces<IntProduct,
edm::
Transition::BeginRun>(
"beginRun")),
57 blToken_(producesCollector.produces<
edm::
Transition::BeginLuminosityBlock>(
edm::TypeID(typeid(IntProduct)),
62 copy = producesCollector;
80 luminosityBlock.
put(
blToken_, std::make_unique<IntProduct>(7));
84 luminosityBlock.
put(
elToken_, std::make_unique<IntProduct>(8));
89 edm::EndLuminosityBlockProducer,
90 edm::BeginLuminosityBlockProducer> {
edm::EDPutTokenT< UInt64Product > eventWithTransitionToken_
void globalBeginLuminosityBlockProduce(edm::LuminosityBlock &, edm::EventSetup const &) const override
static void fillDescriptions(edm::ConfigurationDescriptions &)
ProducerHelperUsingCollector(edm::ProducesCollector &&)
void globalBeginRunProduce(edm::Run &, edm::EventSetup const &) const override
edm::EDPutTokenT< IntProduct > erToken_
void globalEndRunProduce(edm::Run &, edm::EventSetup const &) const override
void putEndLumiProducts(edm::LuminosityBlock &) const
edm::EDPutTokenT< IntProduct > eventToken_
void produce(edm::StreamID, edm::Event &, edm::EventSetup const &) const override
void addDefault(ParameterSetDescription const &psetDescription)
void putEndRunProducts(edm::Run &) const
void put(std::unique_ptr< PROD > product)
Put a new product.
ProducerHelperUsingCollector helper_
#define DEFINE_FWK_MODULE(type)
void putBeginRunProducts(edm::Run &) const
edm::EDPutTokenT< IntProduct > brToken_
edm::EDPutTokenT< IntProduct > eventWithInstanceToken_
void putEventProducts(edm::Event &) const
ProducerUsingCollector(edm::ParameterSet const &)
void globalEndLuminosityBlockProduce(edm::LuminosityBlock &, edm::EventSetup const &) const override
~ProducerUsingCollector() override
edm::EDPutToken eventUsingTypeIDToken_
void putBeginLumiProducts(edm::LuminosityBlock &) const