1 #ifndef SiStripConfObject_h 2 #define SiStripConfObject_h 36 template <
class valueType>
41 if(
parameters.insert(std::make_pair(name, ss.str())).second )
return true;
49 template <
class valueType>
54 std::cout <<
"WARNING in SiStripConfObject::update: parameter " << name <<
" not found, " 55 <<
"so cannot be updated to '" << inputValue <<
"'." << std::endl;
60 it->second = ss.str();
65 template <
class valueType>
68 valueType returnValue = 0;
76 std::cout <<
"WARNING: parameter " <<
name <<
" not found. Returning default value" << std::endl;
91 typedef std::map<std::string, std::string>
parMap;
101 bool SiStripConfObject::put<std::vector<int> >(
const std::string &
name,
const std::vector<int> & inputValue );
103 bool SiStripConfObject::update<std::vector<int> >(
const std::string &
name,
const std::vector<int> & inputValue );
105 std::vector<int> SiStripConfObject::get<std::vector<int> >(
const std::string &
name )
const;
107 bool SiStripConfObject::put<std::vector<std::string> >(
const std::string &
name,
const std::vector<std::string> & inputValue );
109 bool SiStripConfObject::update<std::vector<std::string> >(
const std::string &
name,
const std::vector<std::string> & inputValue );
111 std::vector<std::string> SiStripConfObject::get<std::vector<std::string> >(
const std::string &
name )
const;
bool update(const std::string &name, const valueType &inputValue)
void printDebug(std::stringstream &ss, const TrackerTopology *trackerTopo) const
Prints the full list of parameters.
std::map< std::string, std::string > parMap
bool put(const std::string &name, const valueType &inputValue)
void printSummary(std::stringstream &ss, const TrackerTopology *trackerTopo) const
Prints the full list of parameters.
#define COND_SERIALIZABLE
bool isParameter(const std::string &name) const