CMS 3D CMS Logo

Muon.cc
Go to the documentation of this file.
2 
4  : L1Candidate(math::PtEtaPhiMLorentzVector{0., 0., 0., 0.}, 0., 0., 0., 0, 0),
5  hwCharge_(0),
6  hwChargeValid_(0),
7  tfMuonIndex_(-1),
8  hwTag_(0),
9  debug_(false),
10  hwIsoSum_(0),
11  hwDPhiExtra_(0),
12  hwDEtaExtra_(0),
13  hwRank_(0)
14 {
15 
16 }
17 
19  int pt,
20  int eta,
21  int phi,
22  int qual,
23  int charge,
24  int chargeValid,
25  int iso,
26  int tfMuonIndex,
27  int tag,
28  bool debug,
29  int isoSum,
30  int dPhi,
31  int dEta,
32  int rank )
33  : L1Candidate(p4, pt, eta, phi, qual, iso),
34  hwCharge_(charge),
35  hwChargeValid_(chargeValid),
36  tfMuonIndex_(tfMuonIndex),
37  hwTag_(tag),
38  debug_(debug),
39  hwIsoSum_(isoSum),
40  hwDPhiExtra_(dPhi),
41  hwDEtaExtra_(dEta),
42  hwRank_(rank)
43 {
44 
45 }
46 
48  int pt,
49  int eta,
50  int phi,
51  int qual,
52  int charge,
53  int chargeValid,
54  int iso,
55  int tfMuonIndex,
56  int tag,
57  bool debug,
58  int isoSum,
59  int dPhi,
60  int dEta,
61  int rank )
62  : L1Candidate(p4, pt, eta, phi, qual, iso),
63  hwCharge_(charge),
64  hwChargeValid_(chargeValid),
65  tfMuonIndex_(tfMuonIndex),
66  hwTag_(tag),
67  debug_(debug),
68  hwIsoSum_(isoSum),
69  hwDPhiExtra_(dPhi),
70  hwDEtaExtra_(dEta),
71  hwRank_(rank)
72 {
73 
74 }
75 
77 {
78 
79 }
80 
81 void
83 {
84  hwCharge_ = charge;
85 }
86 
87 void
89 {
90  hwChargeValid_ = valid;
91 }
92 
93 void
95 {
96  hwTag_ = tag;
97 }
98 
99 void
101 {
103 }
104 
105 void
107 {
108  hwIsoSum_ = isoSum;
109 }
110 
111 void
113 {
114  hwDPhiExtra_ = dPhi;
115 }
116 
117 void
119 {
120  hwDEtaExtra_ = dEta;
121 }
122 
123 void
125 {
126  hwRank_ = rank;
127 }
128 
129 void
131 {
132  debug_ = debug;
133 }
134 
135 int
137 {
138  return hwCharge_;
139 }
140 
141 int
143 {
144  return hwChargeValid_;
145 }
146 
147 int
149 {
150  return hwTag_;
151 }
152 
153 int
155 {
156  return tfMuonIndex_;
157 }
158 
159 int
161 {
162  return hwIsoSum_;
163 }
164 
165 int
167 {
168  return hwDPhiExtra_;
169 }
170 
171 int
173 {
174  return hwDEtaExtra_;
175 }
176 
177 int
179 {
180  return hwRank_;
181 }
182 
183 bool
185 {
186  return debug_;
187 }
virtual double pt() const final
transverse momentum
int hwDPhiExtra_
Definition: Muon.h:92
int hwDPhiExtra() const
Definition: Muon.cc:166
virtual double eta() const final
momentum pseudorapidity
void setHwTag(int tag)
Definition: Muon.cc:94
int hwRank() const
Definition: Muon.cc:178
~Muon()
Definition: Muon.cc:76
int hwDEtaExtra_
Definition: Muon.h:93
void setHwDPhiExtra(int dPhi)
Definition: Muon.cc:112
int hwDEtaExtra() const
Definition: Muon.cc:172
virtual double phi() const final
momentum azimuthal angle
PtEtaPhiMLorentzVectorD PtEtaPhiMLorentzVector
Lorentz vector with cartesian internal representation.
Definition: LorentzVector.h:25
virtual int charge() const final
electric charge
Definition: LeafCandidate.h:91
int tfMuonIndex_
Definition: Muon.h:86
bool debug_
Definition: Muon.h:90
void setTfMuonIndex(int index)
Definition: Muon.cc:100
double dPhi(double phi1, double phi2)
Definition: JetUtil.h:30
int hwTag() const
Definition: Muon.cc:148
double p4[4]
Definition: TauolaWrapper.h:92
void setHwCharge(int charge)
Definition: Muon.cc:82
void setHwChargeValid(int valid)
Definition: Muon.cc:88
int hwCharge_
Definition: Muon.h:84
void setHwIsoSum(int isoSum)
Definition: Muon.cc:106
unsigned int index
Definition: LeafCandidate.h:31
int hwRank_
Definition: Muon.h:94
bool debug() const
Definition: Muon.cc:184
Definition: Error.h:16
unsigned int index
index type
Definition: Candidate.h:51
int tfMuonIndex() const
Definition: Muon.cc:154
#define debug
Definition: HDRShower.cc:19
int hwIsoSum_
Definition: Muon.h:91
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:37
void setHwDEtaExtra(int dEta)
Definition: Muon.cc:118
int hwTag_
Definition: Muon.h:87
int hwChargeValid_
Definition: Muon.h:85
isoSum
===> compute the isolation and find the most isolated track
virtual const LorentzVector & p4() const final
four-momentum Lorentz vector
Definition: LeafCandidate.h:99
void setDebug(bool debug)
Definition: Muon.cc:130
int hwChargeValid() const
Definition: Muon.cc:142
int hwIsoSum() const
Definition: Muon.cc:160
Muon()
Definition: Muon.cc:3
void setHwRank(int rank)
Definition: Muon.cc:124
int hwCharge() const
Definition: Muon.cc:136
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: Candidate.h:39