DataFormats
L1TMuonPhase2
src
TrackerMuon.cc
Go to the documentation of this file.
1
2
#include "
DataFormats/L1TMuonPhase2/interface/TrackerMuon.h
"
3
4
using namespace
l1t
;
5
6
TrackerMuon::TrackerMuon
() : hwZ0_(0), hwD0_(0) {}
7
8
TrackerMuon::TrackerMuon
(
9
const
edm::Ptr<L1TTTrackType>
& trk,
bool
charge
,
uint
pt
,
int
eta
,
int
phi,
int
z0,
int
d0
,
uint
quality
)
10
:
L1Candidate
(
LorentzVector
(trk->momentum().
x
(), trk->momentum().y(), trk->momentum().z(), trk->momentum().
mag
()),
11
pt
,
12
eta
,
13
phi,
14
quality
),
15
trkPtr_(trk),
16
hwCharge_(
charge
),
17
hwZ0_(z0),
18
hwD0_(
d0
),
19
hwBeta_(15) {}
20
21
TrackerMuon::~TrackerMuon
() {}
22
23
void
TrackerMuon::print
()
const
{
24
LogDebug
(
"TrackerMuon"
) <<
"Tracker Muon : charge="
<<
hwCharge_
<<
" pt="
<<
hwPt
() <<
","
<<
p4
().pt()
25
<<
" eta="
<<
hwEta
() <<
","
<<
p4
().eta() <<
" phi="
<<
hwPhi
() <<
","
<<
p4
().phi()
26
<<
" z0="
<<
hwZ0_
<<
" d0="
<<
hwD0_
<<
" isolation="
<<
hwIso
() <<
" beta="
<<
hwBeta_
27
<<
" quality="
<<
hwQual
();
28
}
TrackerMuon.h
parallelization.uint
uint
Definition:
parallelization.py:124
l1t::TrackerMuon::hwD0_
int hwD0_
Definition:
TrackerMuon.h:70
l1t::L1Candidate::hwPhi
int hwPhi() const
Definition:
L1Candidate.h:37
PVValHelper::eta
Definition:
PVValidationHelpers.h:70
l1t
delete x;
Definition:
CaloConfig.h:22
reco::LeafCandidate::p4
const LorentzVector & p4() const final
four-momentum Lorentz vector
Definition:
LeafCandidate.h:114
l1t::L1Candidate::hwQual
int hwQual() const
Definition:
L1Candidate.h:38
DiDispStaMuonMonitor_cfi.pt
pt
Definition:
DiDispStaMuonMonitor_cfi.py:39
quality
string quality
Definition:
beamSpotDipStandalone.cc:53
l1t::L1Candidate
Definition:
L1Candidate.h:15
l1t::L1Candidate::hwEta
int hwEta() const
Definition:
L1Candidate.h:36
edm::Ptr
Definition:
AssociationVector.h:31
l1t::TrackerMuon::print
void print() const
Definition:
TrackerMuon.cc:23
ALCARECOTkAlJpsiMuMu_cff.charge
charge
Definition:
ALCARECOTkAlJpsiMuMu_cff.py:47
l1t::TrackerMuon::~TrackerMuon
~TrackerMuon() override
Definition:
TrackerMuon.cc:21
d0
static constexpr float d0
Definition:
L1EGammaCrystalsEmulatorProducer.cc:82
mag
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
Definition:
Basic3DVectorLD.h:127
l1t::L1Candidate::hwPt
int hwPt() const
Definition:
L1Candidate.h:35
l1t::TrackerMuon::hwZ0_
int hwZ0_
Definition:
TrackerMuon.h:69
l1t::TrackerMuon::TrackerMuon
TrackerMuon()
Definition:
TrackerMuon.cc:6
reco::Candidate::LorentzVector
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition:
Candidate.h:36
l1t::TrackerMuon::hwBeta_
uint hwBeta_
Definition:
TrackerMuon.h:71
l1t::L1Candidate::hwIso
int hwIso() const
Definition:
L1Candidate.h:39
x
float x
Definition:
beamSpotDipStandalone.cc:55
l1t::TrackerMuon::hwCharge_
bool hwCharge_
Definition:
TrackerMuon.h:68
LogDebug
#define LogDebug(id)
Definition:
MessageLogger.h:233
Generated for CMSSW Reference Manual by
1.8.14