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  out << " LSB : " << this->regionLsb() << std::endl;
55 
56  out << "EG" << std::endl;
57  out << " LSB : " << this->egLsb() << std::endl;
58  out << " Seed thresh : " << this->egSeedThreshold() << std::endl;
59  out << " Neighbour thresh : " << this->egNeighbourThreshold() << std::endl;
60  out << " HCAL thresh : " << this->egHcalThreshold() << std::endl;
61  out << " HCAL max Et : " << this->egMaxHcalEt() << std::endl;
62  out << " Iso PUS type : " << this->egPUSType() << std::endl;
63 
64  out << "Tau" << std::endl;
65  out << " Seed thresh : " << this->tauSeedThreshold() << std::endl;
66  out << " Neighbour thresh : " << this->tauNeighbourThreshold() << std::endl;
67  out << " Iso PUS type : " << this->tauPUSType() << std::endl;
68 
69  out << "Jets" << std::endl;
70  out << " LSB : " << this->jetLsb() << std::endl;
71  out << " Seed thresh : " << this->jetSeedThreshold() << std::endl;
72  out << " Neighbour thresh : " << this->jetNeighbourThreshold() << std::endl;
73  out << " PUS type : " << this->jetPUSType() << std::endl;
74  out << " Calibration type : " << this->jetCalibrationType() << std::endl;
75 
76  out << "Sums" << std::endl;
77  for (unsigned i=0; i<etSumEtaMin_.size(); ++i) {
78  out << " EtSum" << i << " eta min : " << this->etSumEtaMin(i) << std::endl;
79  if (etSumEtaMax_.size()>i) out << " EtSum" << i << " eta max : " << this->etSumEtaMax(i) << std::endl;
80  if (etSumEtThreshold_.size()>i) out << " EtSum" << i << " Et thresh : " << this->etSumEtThreshold(i) << std::endl;
81  }
82 
83 }
double towerLsbH() const
Definition: CaloParams.h:196
int i
Definition: DBlmapReader.cc:9
double towerLsbSum() const
Definition: CaloParams.h:198
int towerNBitsRatio() const
Definition: CaloParams.h:202
double jetNeighbourThreshold() const
Definition: CaloParams.h:332
double egLsb() const
Definition: CaloParams.h:229
std::vector< double > etSumEtThreshold_
Definition: CaloParams.h:397
double towerLsbE() const
Definition: CaloParams.h:197
double regionLsb() const
Definition: CaloParams.h:220
int towerMaskSum() const
Definition: CaloParams.h:205
int towerMaskH() const
Definition: CaloParams.h:204
double tauSeedThreshold() const
Definition: CaloParams.h:285
bool doTowerEncoding() const
Definition: CaloParams.h:207
double tauNeighbourThreshold() const
Definition: CaloParams.h:286
double isum
T eta() const
void setEtSumEtThreshold(unsigned isum, double thresh)
Definition: CaloParams.cc:30
double jetLsb() const
Definition: CaloParams.h:330
std::vector< int > etSumEtaMin_
Definition: CaloParams.h:391
void print(std::ostream &) const
Definition: CaloParams.cc:35
double egHcalThreshold() const
Definition: CaloParams.h:232
std::vector< int > etSumEtaMax_
Definition: CaloParams.h:394
double egMaxHcalEt() const
Definition: CaloParams.h:234
int etSumEtaMax(unsigned isum) const
Definition: CaloParams.cc:10
const std::string & egPUSType() const
Definition: CaloParams.h:247
int etSumEtaMin(unsigned isum) const
Definition: CaloParams.cc:5
int towerNBitsE() const
Definition: CaloParams.h:200
tuple out
Definition: dbtoconf.py:99
double jetSeedThreshold() const
Definition: CaloParams.h:331
int towerMaskRatio() const
Definition: CaloParams.h:206
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:221
int towerNBitsSum() const
Definition: CaloParams.h:201
std::string tauPUSType() const
Definition: CaloParams.h:293
double egSeedThreshold() const
Definition: CaloParams.h:230
double egNeighbourThreshold() const
Definition: CaloParams.h:231
std::string jetPUSType() const
Definition: CaloParams.h:333
int towerMaskE() const
Definition: CaloParams.h:203
int towerNBitsH() const
Definition: CaloParams.h:199
double etSumEtThreshold(unsigned isum) const
Definition: CaloParams.cc:15
std::string jetCalibrationType() const
Definition: CaloParams.h:335