15 std::cout <<
"WARNING: parameter " <<
name <<
" not found. Returning default value" << std::endl;
21 bool SiStripConfObject::put<std::vector<int> >(
const std::string &
name,
const std::vector<int> & inputValue )
24 for(std::vector<int>::const_iterator
elem=inputValue.begin();
elem!=inputValue.end();++
elem) {
27 if(
parameters.insert(std::make_pair(
name, ss.str())).second )
return true;
32 bool SiStripConfObject::update<std::vector<int> >(
const std::string &
name,
const std::vector<int> & inputValue )
36 std::cout <<
"WARNING in SiStripConfObject::update: parameter " <<
name <<
" not found, " 37 <<
"so cannot be updated to the vector of int of size'" << inputValue.size() <<
"'." << std::endl;
41 for(std::vector<int>::const_iterator
elem=inputValue.begin();
elem!=inputValue.end();++
elem) {
44 it->second = ss.str();
50 std::vector<int> SiStripConfObject::get<std::vector<int> >(
const std::string &
name )
const 52 std::vector<int> returnValue;
58 while(ss >> elem) returnValue.push_back(elem);
61 std::cout <<
"WARNING: parameter " <<
name <<
" not found. Returning default value" << std::endl;
67 bool SiStripConfObject::put<std::vector<std::string> >(
const std::string &
name,
const std::vector<std::string> & inputValue )
70 for(std::vector<std::string>::const_iterator
elem=inputValue.begin();
elem!=inputValue.end();++
elem) {
73 if(
parameters.insert(std::make_pair(
name, ss.str())).second )
return true;
78 bool SiStripConfObject::update<std::vector<std::string> >(
const std::string &
name,
const std::vector<std::string> & inputValue )
82 std::cout <<
"WARNING in SiStripConfObject::update: parameter " <<
name <<
" not found, " 83 <<
"so cannot be updated to the vector of std::string of size'" << inputValue.size() <<
"'." << std::endl;
87 for(std::vector<std::string>::const_iterator
elem=inputValue.begin();
elem!=inputValue.end();++
elem) {
90 it->second = ss.str();
96 std::vector<std::string> SiStripConfObject::get<std::vector<std::string> >(
const std::string &
name )
const 98 std::vector<std::string> returnValue;
100 std::stringstream ss;
104 while(ss >> elem) returnValue.push_back(elem);
107 std::cout <<
"WARNING: parameter " <<
name <<
" not found. Returning default value" << std::endl;
115 parMap::const_iterator it =
parameters.begin();
117 ss <<
"parameter name = " << it->first <<
" value = " << it->second << std::endl;
void printDebug(std::stringstream &ss, const TrackerTopology *trackerTopo) const
Prints the full list of parameters.
void printSummary(std::stringstream &ss, const TrackerTopology *trackerTopo) const
Prints the full list of parameters.
def elem(elemtype, innerHTML='', html_class='', kwargs)