CMS 3D CMS Logo

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