CMS 3D CMS Logo

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 
9 namespace l1t {
11  if (pnode_.size() < NUM_CALOPARAMNODES){
12  pnode_.resize(NUM_CALOPARAMNODES);
13  // at version 2, tauCompress was added, we can add a default version here if necessary...
14  }
15  };
16 
17  std::ostream & operator<<(std::ostream &os, const l1t::CaloParamsHelper& p){
18  return os << "CaloParamsHelper...";
19  }
20 
21  int CaloParamsHelper::etSumEtaMin(unsigned isum) const {
22  if (etSumEtaMin_.size()>isum) return etSumEtaMin_.at(isum);
23  else return 0;
24  }
25 
26  int CaloParamsHelper::etSumEtaMax(unsigned isum) const {
27  if (etSumEtaMax_.size()>isum) return etSumEtaMax_.at(isum);
28  else return 0;
29  }
30 
31  double CaloParamsHelper::etSumEtThreshold(unsigned isum) const {
32  if (etSumEtThreshold_.size()>isum) return etSumEtThreshold_.at(isum);
33  else return 0.;
34  }
35 
37  if (etSumEtaMin_.size()<=isum) etSumEtaMin_.resize(isum+1);
38  etSumEtaMin_.at(isum) = eta;
39  }
40 
42  if (etSumEtaMax_.size()<=isum) etSumEtaMax_.resize(isum+1);
43  etSumEtaMax_.at(isum) = eta;
44  }
45 
47  if (etSumEtThreshold_.size()<=isum) etSumEtThreshold_.resize(isum+1);
48  etSumEtThreshold_.at(isum) = thresh;
49  }
50 }
void setEtSumEtaMax(unsigned isum, int eta)
friend std::ostream & operator<<(std::ostream &os, const CaloParamsHelper &h)
std::vector< double > etSumEtThreshold_
Definition: CaloParams.h:230
double etSumEtThreshold(unsigned isum) const
std::vector< Node > pnode_
Definition: CaloParams.h:207
delete x;
Definition: CaloConfig.h:22
double isum
int etSumEtaMax(unsigned isum) const
std::vector< int > etSumEtaMin_
Definition: CaloParams.h:224
void setEtSumEtaMin(unsigned isum, int eta)
int etSumEtaMin(unsigned isum) const
std::vector< int > etSumEtaMax_
Definition: CaloParams.h:227
void setEtSumEtThreshold(unsigned isum, double thresh)