7 edm::LogInfo(
"SiStripConfObjectGenerator") <<
"[SiStripConfObjectGenerator::SiStripConfObjectGenerator]";
12 edm::LogInfo(
"SiStripConfObjectGenerator") <<
"[SiStripConfObjectGenerator::~SiStripConfObjectGenerator]";
18 std::vector<edm::ParameterSet>::const_iterator parIt =
parameters_.begin();
21 if( parIt->getParameter<
std::string>(
"ParameterType") ==
"int" ) {
22 obj->
put(parIt->getParameter<
std::string>(
"ParameterName"), parIt->getParameter<int32_t>(
"ParameterValue"));
24 else if( parIt->getParameter<
std::string>(
"ParameterType") ==
"double" ) {
25 obj->
put(parIt->getParameter<
std::string>(
"ParameterName"), parIt->getParameter<
double>(
"ParameterValue"));
27 else if( parIt->getParameter<
std::string>(
"ParameterType") ==
"string" ) {
30 else if( parIt->getParameter<
std::string>(
"ParameterType") ==
"bool" ) {
31 obj->
put(parIt->getParameter<
std::string>(
"ParameterName"), parIt->getParameter<
bool>(
"ParameterValue"));
33 else if( parIt->getParameter<
std::string>(
"ParameterType") ==
"vint32" ) {
34 obj->
put(parIt->getParameter<
std::string>(
"ParameterName"), parIt->getParameter<std::vector<int> >(
"ParameterValue"));
36 else if( parIt->getParameter<
std::string>(
"ParameterType") ==
"vstring" ) {
37 obj->
put(parIt->getParameter<
std::string>(
"ParameterName"), parIt->getParameter<std::vector<std::string> >(
"ParameterValue"));
T getParameter(std::string const &) const
std::vector< edm::ParameterSet > parameters_
SiStripConfObject * createObject()
SiStripConfObjectGenerator(const edm::ParameterSet &, const edm::ActivityRegistry &)
bool put(const std::string &name, const valueType &inputValue)
~SiStripConfObjectGenerator()