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
l1t::CaloParamsHelper::setEtSumEtaMax
void setEtSumEtaMax(unsigned isum, int eta)
Definition: CaloParamsHelper.cc:45
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
l1t::CaloParams::pnode_
std::vector< Node > pnode_
Definition: CaloParams.h:236
l1t::CaloParamsHelper::etSumEtThreshold
double etSumEtThreshold(unsigned isum) const
Definition: CaloParamsHelper.cc:32
PVValHelper::eta
Definition: PVValidationHelpers.h:69
l1t::CaloParamsHelper::etSumEtaMin
int etSumEtaMin(unsigned isum) const
Definition: CaloParamsHelper.cc:18
l1t::CaloParamsHelper::setEtSumEtaMin
void setEtSumEtaMin(unsigned isum, int eta)
Definition: CaloParamsHelper.cc:39
l1t::CaloParams::etSumEtaMin_
std::vector< int > etSumEtaMin_
Definition: CaloParams.h:253
l1t::CaloParamsHelper::etSumEtaMax
int etSumEtaMax(unsigned isum) const
Definition: CaloParamsHelper.cc:25
l1t::CaloParams::etSumEtaMax_
std::vector< int > etSumEtaMax_
Definition: CaloParams.h:256
l1t::CaloParamsHelper::setEtSumEtThreshold
void setEtSumEtThreshold(unsigned isum, double thresh)
Definition: CaloParamsHelper.cc:51
l1t
delete x;
Definition: CaloConfig.h:22
l1t::CaloParamsHelper
Definition: CaloParamsHelper.h:21
GOODCOLL_filter_cfg.thresh
thresh
Definition: GOODCOLL_filter_cfg.py:74
l1t::CaloParams
Definition: CaloParams.h:25
isum
double isum
Definition: MuScleFitUtils.cc:77
l1t::CaloParamsHelper::CaloParamsHelper
CaloParamsHelper()
Definition: CaloParamsHelper.h:79
CaloParamsHelper.h
l1t::CaloParamsHelper::NUM_CALOPARAMNODES
Definition: CaloParamsHelper.h:76
l1t::operator<<
std::ostream & operator<<(std::ostream &os, const l1t::CaloParamsHelper &p)
Definition: CaloParamsHelper.cc:16
l1t::CaloParams::etSumEtThreshold_
std::vector< double > etSumEtThreshold_
Definition: CaloParams.h:259