CMS 3D CMS Logo

Tau.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  nTT_ = 0;
11  hasEM_ = false;
12  isMerged_ = false;
13 }
14 
15 Tau::Tau( const LorentzVector& p4,
16  int pt,
17  int eta,
18  int phi,
19  int qual,
20  int iso )
21  : L1Candidate(p4, pt, eta, phi, qual,iso)
22 {
23  clear_extended();
24 }
25 
26 Tau::Tau( const PolarLorentzVector& p4,
27  int pt,
28  int eta,
29  int phi,
30  int qual,
31  int iso )
32  : L1Candidate(p4, pt, eta, phi, qual,iso)
33 {
34  clear_extended();
35 }
36 
37 Tau::~Tau()
38 {
39 
40 }
41 
42 void Tau::setTowerIEta(short int ieta) {
43  towerIEta_ = ieta;
44 }
45 
46 void Tau::setTowerIPhi(short int iphi) {
47  towerIPhi_ = iphi;
48 }
49 
50 void Tau::setRawEt(short int et) {
51  rawEt_ = et;
52 }
53 
54 void Tau::setIsoEt(short int et) {
55  isoEt_ = et;
56 }
57 
58 void Tau::setNTT(short int ntt) {
59  nTT_ = ntt;
60 }
61 
62 void Tau::setHasEM(bool hasEM) {
63  hasEM_ = hasEM;
64 }
65 
66 void Tau::setIsMerged(bool isMerged) {
67  isMerged_ = isMerged;
68 }
69 
70 short int Tau::towerIEta() const {
71  return towerIEta_;
72 }
73 
74 short int Tau::towerIPhi() const {
75  return towerIPhi_;
76 }
77 
78 short int Tau::rawEt() const {
79  return rawEt_;
80 }
81 
82 short int Tau::isoEt() const {
83  return isoEt_;
84 }
85 
86 short int Tau::nTT() const {
87  return nTT_;
88 }
89 
90 bool Tau::hasEM() const {
91  return hasEM_;
92 }
93 
94 bool Tau::isMerged() const {
95  return isMerged_;
96 }
97 
98 bool Tau::operator==(const l1t::Tau& rhs) const
99 {
100  return l1t::L1Candidate::operator==(static_cast<const l1t::L1Candidate &>(rhs))
101  && towerIEta_ == rhs.towerIEta()
102  && towerIPhi_ == rhs.towerIPhi()
103  && rawEt_ == rhs.rawEt()
104  && isoEt_ == rhs.isoEt()
105  && nTT_ == rhs.nTT()
106  && hasEM_ == rhs.hasEM()
107  && isMerged_ == rhs.isMerged();
108 }
109 
bool hasEM() const
double eta() const final
momentum pseudorapidity
short int isoEt_
Definition: Tau.h:71
Definition: Tau.h:21
double pt() const final
transverse momentum
short int nTT_
Definition: Tau.h:72
delete x;
Definition: CaloConfig.h:22
short int towerIEta_
Definition: Tau.h:68
virtual bool operator==(const l1t::L1Candidate &rhs) const
Definition: L1Candidate.cc:44
short int towerIPhi_
Definition: Tau.h:69
#define nTT
Definition: TMEGeom.h:6
bool isMerged_
Definition: Tau.h:74
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
Definition: LeafCandidate.h:99
short int rawEt_
Definition: Tau.h:70
short int towerIEta() const
short int rawEt() const
bool hasEM_
Definition: Tau.h:73
et
define resolution functions of each parameter
Tau()
Definition: Tau.h:24
short int isoEt() const
short int towerIPhi() const
double phi() const final
momentum azimuthal angle
short int nTT() const