CMS 3D CMS Logo

EGamma.cc
Go to the documentation of this file.
1 
3 using namespace l1t;
4 
6  towerIEta_ = 0;
7  towerIPhi_ = 0;
8  rawEt_ = 0;
9  isoEt_ = 0;
10  footprintEt_ = 0;
11  nTT_ = 0;
12  shape_ = 0;
13  towerHoE_ = 0;
14 }
15 
16 EGamma::EGamma(const LorentzVector& p4, int pt, int eta, int phi, int qual, int iso)
17  : L1Candidate(p4, pt, eta, phi, qual, iso) {
19 }
20 
21 EGamma::EGamma(const PolarLorentzVector& p4, int pt, int eta, int phi, int qual, int iso)
22  : L1Candidate(p4, pt, eta, phi, qual, iso) {
24 }
25 
27 
28 void EGamma::setTowerIEta(short int ieta) { towerIEta_ = ieta; }
29 
30 void EGamma::setTowerIPhi(short int iphi) { towerIPhi_ = iphi; }
31 
32 void EGamma::setRawEt(short int et) { rawEt_ = et; }
33 
34 void EGamma::setIsoEt(short int et) { isoEt_ = et; }
35 
36 void EGamma::setFootprintEt(short int et) { footprintEt_ = et; }
37 
38 void EGamma::setNTT(short int ntt) { nTT_ = ntt; }
39 
40 void EGamma::setShape(short int s) { shape_ = s; }
41 
42 void EGamma::setTowerHoE(short int HoE) { towerHoE_ = HoE; }
43 
44 short int EGamma::towerIEta() const { return towerIEta_; }
45 
46 short int EGamma::towerIPhi() const { return towerIPhi_; }
47 
48 short int EGamma::rawEt() const { return rawEt_; }
49 
50 short int EGamma::isoEt() const { return isoEt_; }
51 
52 short int EGamma::footprintEt() const { return footprintEt_; }
53 
54 short int EGamma::nTT() const { return nTT_; }
55 
56 short int EGamma::shape() const { return shape_; }
57 
58 short int EGamma::towerHoE() const { return towerHoE_; }
59 
60 bool EGamma::operator==(const l1t::EGamma& rhs) const {
61  return l1t::L1Candidate::operator==(static_cast<const l1t::L1Candidate&>(rhs)) && towerIEta_ == rhs.towerIEta() &&
62  towerIPhi_ == rhs.towerIPhi() && rawEt_ == rhs.rawEt() && isoEt_ == rhs.isoEt() &&
63  footprintEt_ == rhs.footprintEt() && nTT_ == rhs.nTT() && shape_ == rhs.shape() && towerHoE_ == rhs.towerHoE();
64 }
void setRawEt(short int pt)
Definition: EGamma.cc:32
virtual bool operator==(const l1t::EGamma &rhs) const
Definition: EGamma.cc:60
short int rawEt_
Definition: EGamma.h:59
short int towerIPhi() const
Definition: EGamma.cc:46
short int towerIPhi_
Definition: EGamma.h:58
short int towerIEta() const
Definition: EGamma.cc:44
short int rawEt() const
Definition: EGamma.cc:48
delete x;
Definition: CaloConfig.h:22
short int towerHoE_
Definition: EGamma.h:64
void clear_extended()
Definition: EGamma.cc:5
void setTowerHoE(short int HoE)
Definition: EGamma.cc:42
void setNTT(short int ntt)
Definition: EGamma.cc:38
short int isoEt() const
Definition: EGamma.cc:50
short int shape_
Definition: EGamma.h:63
short int isoEt_
Definition: EGamma.h:60
short int shape() const
Definition: EGamma.cc:56
void setFootprintEt(short int fp)
Definition: EGamma.cc:36
void setTowerIEta(short int ieta)
Definition: EGamma.cc:28
short int towerIEta_
Definition: EGamma.h:57
short int footprintEt_
Definition: EGamma.h:61
void setShape(short int s)
Definition: EGamma.cc:40
void setIsoEt(short int iso)
Definition: EGamma.cc:34
~EGamma() override
Definition: EGamma.cc:26
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:36
double et() const final
transverse energy
short int footprintEt() const
Definition: EGamma.cc:52
void setTowerIPhi(short int iphi)
Definition: EGamma.cc:30
short int nTT_
Definition: EGamma.h:62
short int nTT() const
Definition: EGamma.cc:54
EGamma()
Definition: EGamma.h:22
virtual bool operator==(const l1t::L1Candidate &rhs) const
Definition: L1Candidate.cc:14
short int towerHoE() const
Definition: EGamma.cc:58
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: Candidate.h:38