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  hwEtaAtVtx_(0),
15  hwPhiAtVtx_(0),
16  etaAtVtx_(0.),
17  phiAtVtx_(0.)
18 {
19 
20 }
21 
23  int pt,
24  int eta,
25  int phi,
26  int qual,
27  int charge,
28  int chargeValid,
29  int iso,
30  int tfMuonIndex,
31  int tag,
32  bool debug,
33  int isoSum,
34  int dPhi,
35  int dEta,
36  int rank,
37  int hwEtaAtVtx,
38  int hwPhiAtVtx,
39  double etaAtVtx,
40  double phiAtVtx)
41  : L1Candidate(p4, pt, eta, phi, qual, iso),
42  hwCharge_(charge),
43  hwChargeValid_(chargeValid),
44  tfMuonIndex_(tfMuonIndex),
45  hwTag_(tag),
46  debug_(debug),
47  hwIsoSum_(isoSum),
48  hwDPhiExtra_(dPhi),
49  hwDEtaExtra_(dEta),
50  hwRank_(rank),
51  hwEtaAtVtx_(hwEtaAtVtx),
52  hwPhiAtVtx_(hwPhiAtVtx),
53  etaAtVtx_(etaAtVtx),
54  phiAtVtx_(phiAtVtx)
55 {
56 
57 }
58 
60  int pt,
61  int eta,
62  int phi,
63  int qual,
64  int charge,
65  int chargeValid,
66  int iso,
67  int tfMuonIndex,
68  int tag,
69  bool debug,
70  int isoSum,
71  int dPhi,
72  int dEta,
73  int rank,
74  int hwEtaAtVtx,
75  int hwPhiAtVtx,
76  double etaAtVtx,
77  double phiAtVtx)
78  : L1Candidate(p4, pt, eta, phi, qual, iso),
79  hwCharge_(charge),
80  hwChargeValid_(chargeValid),
81  tfMuonIndex_(tfMuonIndex),
82  hwTag_(tag),
83  debug_(debug),
84  hwIsoSum_(isoSum),
85  hwDPhiExtra_(dPhi),
86  hwDEtaExtra_(dEta),
87  hwRank_(rank),
88  hwEtaAtVtx_(hwEtaAtVtx),
89  hwPhiAtVtx_(hwPhiAtVtx),
90  etaAtVtx_(etaAtVtx),
91  phiAtVtx_(phiAtVtx)
92 {
93 
94 }
95 
97 {
98 
99 }
100 
101 bool l1t::Muon::operator==(const l1t::Muon& rhs) const
102 {
103  return l1t::L1Candidate::operator==(static_cast<const l1t::L1Candidate &>(rhs))
104  && hwCharge_ == rhs.hwCharge()
105  && hwChargeValid_ == rhs.hwChargeValid()
106  && tfMuonIndex_ == rhs.tfMuonIndex()
107  && hwEtaAtVtx_ == rhs.hwEtaAtVtx()
108  && hwPhiAtVtx_ == rhs.hwPhiAtVtx();
109 }
110 
int hwPhiAtVtx() const
Definition: Muon.h:93
double eta() const final
momentum pseudorapidity
int hwDPhiExtra_
Definition: Muon.h:118
double phiAtVtx_
Definition: Muon.h:126
~Muon()
Definition: Muon.cc:96
int hwDEtaExtra_
Definition: Muon.h:119
double pt() const final
transverse momentum
int charge() const final
electric charge
Definition: LeafCandidate.h:91
virtual bool operator==(const l1t::L1Candidate &rhs) const
Definition: L1Candidate.cc:44
PtEtaPhiMLorentzVectorD PtEtaPhiMLorentzVector
Lorentz vector with cartesian internal representation.
Definition: LorentzVector.h:25
int tfMuonIndex_
Definition: Muon.h:112
bool debug_
Definition: Muon.h:116
double p4[4]
Definition: TauolaWrapper.h:92
double etaAtVtx() const
Definition: Muon.h:94
int hwCharge_
Definition: Muon.h:105
const LorentzVector & p4() const final
four-momentum Lorentz vector
Definition: LeafCandidate.h:99
int hwRank_
Definition: Muon.h:120
bool debug() const
Definition: Muon.h:102
Definition: Error.h:16
Definition: Muon.h:21
int tfMuonIndex() const
Definition: Muon.h:89
#define debug
Definition: HDRShower.cc:19
int hwIsoSum_
Definition: Muon.h:117
int hwEtaAtVtx() const
Definition: Muon.h:92
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:37
int hwEtaAtVtx_
Definition: Muon.h:123
int hwPhiAtVtx_
Definition: Muon.h:124
int hwTag_
Definition: Muon.h:113
int hwChargeValid_
Definition: Muon.h:111
isoSum
===> compute the isolation and find the most isolated track
double phiAtVtx() const
Definition: Muon.h:95
double etaAtVtx_
Definition: Muon.h:125
int hwChargeValid() const
Definition: Muon.h:88
double phi() const final
momentum azimuthal angle
virtual bool operator==(const l1t::Muon &rhs) const
Definition: Muon.cc:101
Muon()
Definition: Muon.cc:3
int hwCharge() const
Definition: Muon.h:87
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: Candidate.h:39