15 #include "DataFormats/TestObjects/interface/Thing.h" 16 #include "DataFormats/TestObjects/interface/ThingWithMerge.h" 17 #include "DataFormats/TestObjects/interface/ThingWithIsEqual.h" 24 : changeIsEqualValue_(
pset.getUntrackedParameter<
bool>(
"changeIsEqualValue",
false)),
27 produces<Thing>(
"event");
28 produces<Thing, edm::Transition::BeginLuminosityBlock>(
"beginLumi");
29 produces<Thing, edm::Transition::EndLuminosityBlock>(
"endLumi");
30 produces<Thing, edm::Transition::BeginRun>(
"beginRun");
31 produces<Thing, edm::Transition::EndRun>(
"endRun");
33 produces<ThingWithMerge>(
"event");
34 produces<ThingWithMerge, edm::Transition::BeginLuminosityBlock>(
"beginLumi");
35 produces<ThingWithMerge, edm::Transition::EndLuminosityBlock>(
"endLumi");
36 produces<ThingWithMerge, edm::Transition::BeginRun>(
"beginRun");
37 produces<ThingWithMerge, edm::Transition::EndRun>(
"endRun");
39 produces<ThingWithIsEqual>(
"event");
40 produces<ThingWithIsEqual, edm::Transition::BeginLuminosityBlock>(
"beginLumi");
41 produces<ThingWithIsEqual, edm::Transition::EndLuminosityBlock>(
"endLumi");
42 produces<ThingWithIsEqual, edm::Transition::BeginRun>(
"beginRun");
43 produces<ThingWithIsEqual, edm::Transition::EndRun>(
"endRun");
67 auto result = std::make_unique<Thing>();
72 auto result2 = std::make_unique<ThingWithMerge>();
77 auto result3 = std::make_unique<ThingWithIsEqual>();
86 auto result = std::make_unique<Thing>();
91 auto result2 = std::make_unique<ThingWithMerge>();
96 auto result3 = std::make_unique<ThingWithIsEqual>();
105 auto result = std::make_unique<Thing>();
110 auto result2 = std::make_unique<ThingWithMerge>();
115 auto result3 = std::make_unique<ThingWithIsEqual>();
125 auto result = std::make_unique<Thing>();
130 auto result2 = std::make_unique<ThingWithMerge>();
135 auto result3 = std::make_unique<ThingWithIsEqual>();
144 auto result = std::make_unique<Thing>();
149 auto result2 = std::make_unique<ThingWithMerge>();
154 auto result3 = std::make_unique<ThingWithIsEqual>();
183 r.getByLabel(
tag,
h);
191 r.getByLabel(
tag,
h);
197 desc.addUntracked<
bool>(
"changeIsEqualValue",
false);
198 desc.addUntracked<std::vector<std::string>>(
"labelsToGet", std::vector<std::string>());
199 desc.addUntracked<
bool>(
"noPut",
false);
200 descriptions.
add(
"thingWithMergeProducer",
desc);
void beginRunProduce(edm::Run &r, edm::EventSetup const &c) override
void produce(edm::Event &e, edm::EventSetup const &c) override
std::vector< std::string > labelsToGet_
std::vector< std::string >::const_iterator Iter
void beginLuminosityBlock(edm::LuminosityBlock const &lb, edm::EventSetup const &c) override
void beginLuminosityBlockProduce(edm::LuminosityBlock &lb, edm::EventSetup const &c) override
void beginRun(edm::Run const &r, edm::EventSetup const &c) override
void endRun(edm::Run const &r, edm::EventSetup const &c) override
void endRunProduce(edm::Run &r, edm::EventSetup const &c) override
void endLuminosityBlockProduce(edm::LuminosityBlock &lb, edm::EventSetup const &c) override
void put(std::unique_ptr< PROD > product)
Put a new product.
#define DEFINE_FWK_MODULE(type)
ThingWithMergeProducer(edm::ParameterSet const &ps)
bool getByLabel(std::string const &label, Handle< PROD > &result) const
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void endLuminosityBlock(edm::LuminosityBlock const &lb, edm::EventSetup const &c) override
~ThingWithMergeProducer() override
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)