85 if (
pset.getUntrackedParameter<
bool>(
"test",
true)) {
87 <<
"Or the test configuration parameter was set true (it should never be true unless you want this " 124 auto pWhatsIt = std::make_unique<WhatsIt>();
125 pWhatsIt->a = doodad->
a;
131 auto pWhatsIt = std::make_unique<WhatsIt>();
132 pWhatsIt->a = doodad->
a;
138 auto pWhatsIt = std::make_shared<WhatsIt>();
139 pWhatsIt->a = doodad->
a;
145 auto pWhatsIt = std::make_shared<WhatsIt>();
146 pWhatsIt->a = doodad->
a;
152 auto pWhatsIt = std::make_optional<WhatsIt>();
153 pWhatsIt->a = doodad->
a;
160 desc.addUntracked<
bool>(
"test",
false)
161 ->setComment(
"This parameter exists only to test the parameter set validation for ESSources");
162 descriptions.
add(
"WhatsItESProducer",
desc);
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
edm::ESGetToken< edmtest::Doodad, GadgetRcd > tokenB_
std::shared_ptr< WhatsIt > ReturnTypeB
std::unique_ptr< const WhatsIt > ReturnTypeA
std::unique_ptr< WhatsIt > ReturnType
ReturnTypeD produceD(const GadgetRcd &)
edm::ESGetToken< edmtest::Doodad, GadgetRcd > token_
~WhatsItESProducer() override
std::string const & getProcessName() const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::shared_ptr< const WhatsIt > ReturnTypeC
edm::ESGetToken< edmtest::Doodad, GadgetRcd > tokenC_
ReturnTypeB produceB(const GadgetRcd &)
std::optional< WhatsIt > ReturnTypeD
WhatsItESProducer(edm::ParameterSet const &pset)
edm::ESGetToken< edmtest::Doodad, GadgetRcd > tokenA_
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
ReturnType produce(const GadgetRcd &)
ESHandle< PRODUCT > getHandle(ESGetToken< PRODUCT, T > const &iToken) const
edm::ESGetToken< edmtest::Doodad, GadgetRcd > tokenD_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
ReturnTypeC produceC(const GadgetRcd &)
ReturnTypeA produceA(const GadgetRcd &)