CMS 3D CMS Logo

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