CMS 3D CMS Logo

CSCDBL1TPParametersExtended.cc
Go to the documentation of this file.
2 
3 #include <algorithm>
4 
6  paramsInt_.resize(paramNamesInt_.size());
7  paramsBool_.resize(paramNamesBool_.size());
8 }
9 
11 
13  const int index = std::find(paramNamesInt_.begin(), paramNamesInt_.end(), s) - paramNamesInt_.begin();
14  return paramsInt_[index];
15 }
16 
18  const int index = std::find(paramNamesBool_.begin(), paramNamesBool_.end(), s) - paramNamesBool_.begin();
19  return paramsBool_[index];
20 }
21 
23  const int index = std::find(paramNamesInt_.begin(), paramNamesInt_.end(), s) - paramNamesInt_.begin();
24  paramsInt_[index] = v;
25 }
26 
28  const int index = std::find(paramNamesBool_.begin(), paramNamesBool_.end(), s) - paramNamesBool_.begin();
29  paramsBool_[index] = v;
30 }
const std::vector< std::string > paramNamesBool_
const std::vector< std::string > paramNamesInt_
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19
int getValueInt(const std::string &) const
void setValue(const std::string &, int)
bool getValueBool(const std::string &) const