44 findingRecord<SiStripConfObjectRcd>();
62 auto confObject = std::make_unique<SiStripConfObject>();
67 if( paramType ==
"int" ) {
68 confObject->put(paramName, param.getParameter<int32_t>(
"ParameterValue"));
70 else if( paramType ==
"double" ) {
71 confObject->put(paramName, param.getParameter<
double>(
"ParameterValue"));
73 else if( paramType ==
"string" ) {
74 confObject->put(paramName, param.getParameter<
std::string>(
"ParameterValue"));
76 else if( paramType ==
"bool" ) {
77 confObject->put(paramName, param.getParameter<
bool>(
"ParameterValue"));
79 else if( paramType ==
"vint32" ) {
80 confObject->put(paramName, param.getParameter<std::vector<int> >(
"ParameterValue"));
82 else if( paramType ==
"vstring" ) {
83 confObject->put(paramName, param.getParameter<std::vector<std::string> >(
"ParameterValue"));
T getParameter(std::string const &) const
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()
SiStripConfObjectFakeESSource(const edm::ParameterSet &)
std::unique_ptr< SiStripConfObject > ReturnType
std::vector< edm::ParameterSet > m_parameters
#define DEFINE_FWK_EVENTSETUP_SOURCE(type)
ReturnType produce(const SiStripConfObjectRcd &)