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 
39 void Tau::setIsMerged(bool isMerged) { isMerged_ = isMerged; }
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 }
bool hasEM() const
double eta() const final
momentum pseudorapidity
short int isoEt_
Definition: Tau.h:57
Definition: Tau.h:20
double pt() const final
transverse momentum
short int nTT_
Definition: Tau.h:58
delete x;
Definition: CaloConfig.h:22
short int towerIEta_
Definition: Tau.h:54
virtual bool operator==(const l1t::L1Candidate &rhs) const
Definition: L1Candidate.cc:14
short int towerIPhi_
Definition: Tau.h:55
#define nTT
Definition: TMEGeom.h:6
bool isMerged_
Definition: Tau.h:60
bool isMerged() const
void clear_extended()
double p4[4]
Definition: TauolaWrapper.h:92
bool operator==(const QGLikelihoodParameters &lhs, const QGLikelihoodCategory &rhs)
Test if parameters are compatible with category.
math::XYZTLorentzVector LorentzVector
const LorentzVector & p4() const final
four-momentum Lorentz vector
short int rawEt_
Definition: Tau.h:56
short int towerIEta() const
short int rawEt() const
bool hasEM_
Definition: Tau.h:59
Tau()
Definition: Tau.h:22
short int isoEt() const
short int towerIPhi() const
double phi() const final
momentum azimuthal angle
short int nTT() const