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 
double eta() const final
momentum pseudorapidity
short int isoEt_
Definition: Tau.h:59
double pt() const final
transverse momentum
short int nTT_
Definition: Tau.h:60
delete x;
Definition: CaloConfig.h:22
short int towerIEta_
Definition: Tau.h:56
short int towerIPhi_
Definition: Tau.h:57
#define nTT
Definition: TMEGeom.h:6
bool isMerged_
Definition: Tau.h:62
void clear_extended()
double p4[4]
Definition: TauolaWrapper.h:92
math::XYZTLorentzVector LorentzVector
const LorentzVector & p4() const final
four-momentum Lorentz vector
Definition: LeafCandidate.h:99
short int rawEt_
Definition: Tau.h:58
bool hasEM_
Definition: Tau.h:61
et
define resolution functions of each parameter
Tau()
Definition: Tau.h:19
double phi() const final
momentum azimuthal angle