CMS 3D CMS Logo

CSCDBL1TPParametersExtended.cc
Go to the documentation of this file.
2 
4  paramsInt_.resize(paramNamesInt_.size());
5  paramsBool_.resize(paramNamesBool_.size());
6 }
7 
9 
11  const int index = find(paramNamesInt_.begin(), paramNamesInt_.end(), s) - paramNamesInt_.begin();
12  return paramsInt_[index];
13 }
14 
16  const int index = find(paramNamesBool_.begin(), paramNamesBool_.end(), s) - paramNamesBool_.begin();
17  return paramsBool_[index];
18 }
19 
21  const int index = find(paramNamesInt_.begin(), paramNamesInt_.end(), s) - paramNamesInt_.begin();
22  paramsInt_[index] = v;
23 }
24 
26  const int index = find(paramNamesBool_.begin(), paramNamesBool_.end(), s) - paramNamesBool_.begin();
27  paramsBool_[index] = v;
28 }
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:19
void setValue(const std::string &, int)
bool getValueBool(const std::string &) const