1 #ifndef SiStripConfObject_h
2 #define SiStripConfObject_h
32 template <
class valueType>
37 if(
parameters.insert(std::make_pair(name, ss.str())).second )
return true;
44 template <
class valueType>
49 std::cout <<
"WARNING in SiStripConfObject::update: parameter " << name <<
" not found, "
50 <<
"so cannot be updated to '" << inputValue <<
"'." << std::endl;
55 it->second = ss.str();
60 template <
class valueType>
63 valueType returnValue;
71 std::cout <<
"WARNING: parameter " <<
name <<
" not found. Returning default value" << std::endl;
86 typedef std::map<std::string, std::string>
parMap;
void printSummary(std::stringstream &ss) const
Prints the full list of parameters.
bool update(const std::string &name, const valueType &inputValue)
std::map< std::string, std::string > parMap
bool put(const std::string &name, const valueType &inputValue)
void printDebug(std::stringstream &ss) const
Prints the full list of parameters.
bool isParameter(const std::string &name) const