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  hwPtUnconstrained_(0),
19  ptUnconstrained_(0.),
20  hwDXY_(0) {}
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,
42  double ptUnconstrained,
43  int dXY)
44  : L1Candidate(p4, pt, eta, phi, qual, iso),
45  hwCharge_(charge),
46  hwChargeValid_(chargeValid),
47  tfMuonIndex_(tfMuonIndex),
48  hwTag_(tag),
49  debug_(debug),
50  hwIsoSum_(isoSum),
51  hwDPhiExtra_(dPhi),
52  hwDEtaExtra_(dEta),
53  hwRank_(rank),
54  hwEtaAtVtx_(hwEtaAtVtx),
55  hwPhiAtVtx_(hwPhiAtVtx),
56  etaAtVtx_(etaAtVtx),
57  phiAtVtx_(phiAtVtx),
58  hwPtUnconstrained_(hwPtUnconstrained),
59  ptUnconstrained_(ptUnconstrained),
60  hwDXY_(dXY) {}
61 
63  int pt,
64  int eta,
65  int phi,
66  int qual,
67  int charge,
68  int chargeValid,
69  int iso,
70  int tfMuonIndex,
71  int tag,
72  bool debug,
73  int isoSum,
74  int dPhi,
75  int dEta,
76  int rank,
77  int hwEtaAtVtx,
78  int hwPhiAtVtx,
79  double etaAtVtx,
80  double phiAtVtx,
82  double ptUnconstrained,
83  int dXY)
84  : L1Candidate(p4, pt, eta, phi, qual, iso),
85  hwCharge_(charge),
86  hwChargeValid_(chargeValid),
87  tfMuonIndex_(tfMuonIndex),
88  hwTag_(tag),
89  debug_(debug),
90  hwIsoSum_(isoSum),
91  hwDPhiExtra_(dPhi),
92  hwDEtaExtra_(dEta),
93  hwRank_(rank),
94  hwEtaAtVtx_(hwEtaAtVtx),
95  hwPhiAtVtx_(hwPhiAtVtx),
96  etaAtVtx_(etaAtVtx),
97  phiAtVtx_(phiAtVtx),
98  hwPtUnconstrained_(hwPtUnconstrained),
99  ptUnconstrained_(ptUnconstrained),
100  hwDXY_(dXY) {}
101 
103 
104 bool l1t::Muon::operator==(const l1t::Muon& rhs) const {
105  return l1t::L1Candidate::operator==(static_cast<const l1t::L1Candidate&>(rhs)) && hwCharge_ == rhs.hwCharge() &&
106  hwChargeValid_ == rhs.hwChargeValid() && tfMuonIndex_ == rhs.tfMuonIndex() &&
107  hwEtaAtVtx_ == rhs.hwEtaAtVtx() && hwPhiAtVtx_ == rhs.hwPhiAtVtx() &&
108  hwPtUnconstrained_ == rhs.hwPtUnconstrained() && ptUnconstrained_ == rhs.ptUnconstrained() &&
109  hwDXY_ == rhs.hwDXY();
110 }
int hwChargeValid() const
Definition: Muon.h:97
int hwEtaAtVtx() const
Definition: Muon.h:101
int hwCharge() const
Definition: Muon.h:96
PtEtaPhiMLorentzVectorD PtEtaPhiMLorentzVector
Lorentz vector with cartesian internal representation.
Definition: LorentzVector.h:25
int hwDXY() const
Definition: Muon.h:113
int tfMuonIndex() const
Definition: Muon.h:98
bool operator==(const l1t::Muon &rhs) const
Definition: Muon.cc:104
Definition: Muon.h:21
#define debug
Definition: HDRShower.cc:19
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:36
int hwPtUnconstrained() const
Definition: Muon.h:111
isoSum
===> compute the isolation and find the most isolated track
~Muon() override
Definition: Muon.cc:102
Muon()
Definition: Muon.cc:3
int hwPhiAtVtx() const
Definition: Muon.h:102
virtual bool operator==(const l1t::L1Candidate &rhs) const
Definition: L1Candidate.cc:14
double ptUnconstrained() const
Definition: Muon.h:112
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: Candidate.h:38