CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CaloParams.cc
Go to the documentation of this file.
2 
3 using namespace l1t;
4 
5 int CaloParams::etSumEtaMin(unsigned isum) const {
6  if (etSumEtaMin_.size()>isum) return etSumEtaMin_.at(isum);
7  else return 0;
8 }
9 
10 int CaloParams::etSumEtaMax(unsigned isum) const {
11  if (etSumEtaMax_.size()>isum) return etSumEtaMax_.at(isum);
12  else return 0;
13 }
14 
15 double CaloParams::etSumEtThreshold(unsigned isum) const {
16  if (etSumEtThreshold_.size()>isum) return etSumEtThreshold_.at(isum);
17  else return 0.;
18 }
19 
20 void CaloParams::setEtSumEtaMin(unsigned isum, int eta) {
21  if (etSumEtaMin_.size()<=isum) etSumEtaMin_.resize(isum+1);
22  etSumEtaMin_.at(isum) = eta;
23 }
24 
25 void CaloParams::setEtSumEtaMax(unsigned isum, int eta) {
26  if (etSumEtaMax_.size()<=isum) etSumEtaMax_.resize(isum+1);
27  etSumEtaMax_.at(isum) = eta;
28 }
29 
31  if (etSumEtThreshold_.size()<=isum) etSumEtThreshold_.resize(isum+1);
32  etSumEtThreshold_.at(isum) = thresh;
33 }
34 
35 void CaloParams::print(std::ostream& out) const {
36 
37  out << "L1 Calo Parameters" << std::endl;
38  out << "Towers" << std::endl;
39  out << " LSB H : " << this->towerLsbH() << std::endl;
40  out << " LSB E : " << this->towerLsbE() << std::endl;
41  out << " LSB Sum : " << this->towerLsbSum() << std::endl;
42  out << " Nbits H : " << this->towerNBitsH() << std::endl;
43  out << " Nbits E : " << this->towerNBitsE() << std::endl;
44  out << " Nbits Sum : " << this->towerNBitsSum() << std::endl;
45  out << " Nbits Ratio : " << this->towerNBitsRatio() << std::endl;
46  out << " Mask E : " << this->towerMaskE() << std::endl;
47  out << " Mask H : " << this->towerMaskH() << std::endl;
48  out << " Mask Sum : " << this->towerMaskSum() << std::endl;
49  out << " Mask Ratio : " << this->towerMaskRatio() << std::endl;
50  out << " Encoding : " << this->doTowerEncoding() << std::endl;
51 
52  out << "Regions" << std::endl;
53  out << " PUS : " << this->regionPUSType() << std::endl;
54 
55  out << "EG" << std::endl;
56  out << " Seed thresh : " << this->egSeedThreshold() << std::endl;
57  out << " Neighbour thresh : " << this->egNeighbourThreshold() << std::endl;
58  out << " HCAL max Et : " << this->egMaxHcalEt() << std::endl;
59  out << " H/E max : " << this->egMaxHOverE() << std::endl;
60  out << " Iso PUS type : " << this->egIsoPUSType() << std::endl;
61 
62  out << "Tau" << std::endl;
63  out << " Seed thresh : " << this->tauSeedThreshold() << std::endl;
64  out << " Neighbour thresh : " << this->tauNeighbourThreshold() << std::endl;
65  out << " Iso PUS type : " << this->tauIsoPUSType() << std::endl;
66 
67  out << "Jets" << std::endl;
68  out << " Seed thresh : " << this->jetSeedThreshold() << std::endl;
69  out << " Neighbour thresh : " << this->jetNeighbourThreshold() << std::endl;
70  out << " PUS type : " << this->jetPUSType() << std::endl;
71  out << " Calibration type : " << this->jetCalibrationType() << std::endl;
72 
73  out << "Sums" << std::endl;
74  for (unsigned i=0; i<etSumEtaMin_.size(); ++i) {
75  out << " EtSum" << i << " eta min : " << this->etSumEtaMin(i) << std::endl;
76  if (etSumEtaMax_.size()>i) out << " EtSum" << i << " eta max : " << this->etSumEtaMax(i) << std::endl;
77  if (etSumEtThreshold_.size()>i) out << " EtSum" << i << " Et thresh : " << this->etSumEtThreshold(i) << std::endl;
78  }
79 
80 }
double towerLsbH() const
Definition: CaloParams.h:33
int i
Definition: DBlmapReader.cc:9
double towerLsbSum() const
Definition: CaloParams.h:35
int towerNBitsRatio() const
Definition: CaloParams.h:39
double jetNeighbourThreshold() const
Definition: CaloParams.h:136
std::vector< double > etSumEtThreshold_
Definition: CaloParams.h:370
double towerLsbE() const
Definition: CaloParams.h:34
std::string egIsoPUSType() const
Definition: CaloParams.h:84
int towerMaskSum() const
Definition: CaloParams.h:42
int towerMaskH() const
Definition: CaloParams.h:41
double tauSeedThreshold() const
Definition: CaloParams.h:113
bool doTowerEncoding() const
Definition: CaloParams.h:44
double tauNeighbourThreshold() const
Definition: CaloParams.h:115
double isum
double egMaxHOverE() const
Definition: CaloParams.h:76
T eta() const
void setEtSumEtThreshold(unsigned isum, double thresh)
Definition: CaloParams.cc:30
std::vector< int > etSumEtaMin_
Definition: CaloParams.h:364
void print(std::ostream &) const
Definition: CaloParams.cc:35
std::vector< int > etSumEtaMax_
Definition: CaloParams.h:367
double egMaxHcalEt() const
Definition: CaloParams.h:73
int etSumEtaMax(unsigned isum) const
Definition: CaloParams.cc:10
int etSumEtaMin(unsigned isum) const
Definition: CaloParams.cc:5
int towerNBitsE() const
Definition: CaloParams.h:37
tuple out
Definition: dbtoconf.py:99
double jetSeedThreshold() const
Definition: CaloParams.h:134
int towerMaskRatio() const
Definition: CaloParams.h:43
void setEtSumEtaMin(unsigned isum, int eta)
Definition: CaloParams.cc:20
void setEtSumEtaMax(unsigned isum, int eta)
Definition: CaloParams.cc:25
std::string regionPUSType() const
Definition: CaloParams.h:58
int towerNBitsSum() const
Definition: CaloParams.h:38
double egSeedThreshold() const
Definition: CaloParams.h:69
std::string tauIsoPUSType() const
Definition: CaloParams.h:117
double egNeighbourThreshold() const
Definition: CaloParams.h:71
std::string jetPUSType() const
Definition: CaloParams.h:137
int towerMaskE() const
Definition: CaloParams.h:40
int towerNBitsH() const
Definition: CaloParams.h:36
double etSumEtThreshold(unsigned isum) const
Definition: CaloParams.cc:15
std::string jetCalibrationType() const
Definition: CaloParams.h:139