CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CaloParamsHelper.cc
Go to the documentation of this file.
1 // CaloParamsHelper.cc
2 // Author: R. Alex Barbieri
3 //
4 // Wrapper class for CaloParams and Et scales
5 
7 
8 namespace l1t {
10 
11  int CaloParamsHelper::etSumEtaMin(unsigned isum) const {
12  if (etSumEtaMin_.size()>isum) return etSumEtaMin_.at(isum);
13  else return 0;
14  }
15 
16  int CaloParamsHelper::etSumEtaMax(unsigned isum) const {
17  if (etSumEtaMax_.size()>isum) return etSumEtaMax_.at(isum);
18  else return 0;
19  }
20 
21  double CaloParamsHelper::etSumEtThreshold(unsigned isum) const {
22  if (etSumEtThreshold_.size()>isum) return etSumEtThreshold_.at(isum);
23  else return 0.;
24  }
25 
27  if (etSumEtaMin_.size()<=isum) etSumEtaMin_.resize(isum+1);
28  etSumEtaMin_.at(isum) = eta;
29  }
30 
32  if (etSumEtaMax_.size()<=isum) etSumEtaMax_.resize(isum+1);
33  etSumEtaMax_.at(isum) = eta;
34  }
35 
37  if (etSumEtThreshold_.size()<=isum) etSumEtThreshold_.resize(isum+1);
38  etSumEtThreshold_.at(isum) = thresh;
39  }
40 }
void setEtSumEtaMax(unsigned isum, int eta)
std::vector< double > etSumEtThreshold_
Definition: CaloParams.h:245
double etSumEtThreshold(unsigned isum) const
double isum
int etSumEtaMax(unsigned isum) const
std::vector< int > etSumEtaMin_
Definition: CaloParams.h:239
void setEtSumEtaMin(unsigned isum, int eta)
int etSumEtaMin(unsigned isum) const
std::vector< int > etSumEtaMax_
Definition: CaloParams.h:242
void setEtSumEtThreshold(unsigned isum, double thresh)