45 findingRecord<SiStripConfObjectRcd>();
60 using namespace edm::es;
62 auto confObject = std::make_unique<SiStripConfObject>();
67 if (paramType ==
"int") {
68 confObject->put(paramName, param.getParameter<int32_t>(
"ParameterValue"));
69 }
else if (paramType ==
"double") {
70 confObject->put(paramName, param.getParameter<
double>(
"ParameterValue"));
71 }
else if (paramType ==
"string") {
72 confObject->put(paramName, param.getParameter<
std::string>(
"ParameterValue"));
73 }
else if (paramType ==
"bool") {
74 confObject->put(paramName, param.getParameter<
bool>(
"ParameterValue"));
75 }
else if (paramType ==
"vint32") {
76 confObject->put(paramName, param.getParameter<std::vector<int>>(
"ParameterValue"));
77 }
else if (paramType ==
"vstring") {
78 confObject->put(paramName, param.getParameter<std::vector<std::string>>(
"ParameterValue"));
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &iov, edm::ValidityInterval &iValidity) override
~SiStripConfObjectFakeESSource() override
static const IOVSyncValue & endOfTime()
static const IOVSyncValue & beginOfTime()
#define DEFINE_FWK_EVENTSETUP_SOURCE(type)
T getParameter(std::string const &) const
SiStripConfObjectFakeESSource(const edm::ParameterSet &)
std::unique_ptr< SiStripConfObject > ReturnType
std::vector< edm::ParameterSet > m_parameters
ReturnType produce(const SiStripConfObjectRcd &)