3 #include "DataFormats/TestObjects/interface/OtherThingCollection.h" 34 putToken_ = produces<OtherThingCollection>(
"testUserTag");
50 auto result = std::make_unique<OtherThingCollection>();
57 assert(parentHandle.isValid());
70 desc.addUntracked<
bool>(
"useRefs",
true)
71 ->setComment(
"Actually get the ThingCollection and build edm::Refs to the contained items.");
72 desc.addUntracked<
bool>(
"transient",
false)
73 ->setComment(
"If true, then the Refs constructed by the ThingCollection can not be persisted");
74 descriptions.
add(
"otherThingProd",
desc);
OtherThingProducer(edm::ParameterSet const &ps)
void run(edm::Handle< ThingCollection > const &iThingHandle, OtherThingCollection &otherThingCollection, bool useRefs=true, bool refsAreTransient=false) const
edm::EDPutToken putToken_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
~OtherThingProducer() override
#define DEFINE_FWK_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
edm::EDGetToken thingToken_
void produce(edm::StreamID, edm::Event &e, edm::EventSetup const &c) const override