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