CMS 3D CMS Logo

TrackerMuon.cc
Go to the documentation of this file.
2 
3 using namespace l1t;
4 
5 TrackerMuon::TrackerMuon() : hwZ0_(0), hwD0_(0), numberOfMatches_(0) {}
6 
8  const edm::Ptr<L1TTTrackType>& trk, bool charge, uint pt, int eta, int phi, int z0, int d0, uint quality)
9  : L1Candidate(LorentzVector(trk->momentum().x(), trk->momentum().y(), trk->momentum().z(), trk->momentum().mag()),
10  pt,
11  eta,
12  phi,
13  quality),
14  trkPtr_(trk),
15  hwCharge_(charge),
16  hwZ0_(z0),
17  hwD0_(d0),
18  hwBeta_(15),
19  numberOfMatches_(0) {}
20 
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 }
int hwPhi() const
Definition: L1Candidate.h:37
Trktree trk
Definition: Trktree.cc:2
delete x;
Definition: CaloConfig.h:22
const LorentzVector & p4() const final
four-momentum Lorentz vector
int hwQual() const
Definition: L1Candidate.h:38
string quality
int hwEta() const
Definition: L1Candidate.h:36
void print() const
Definition: TrackerMuon.cc:23
~TrackerMuon() override
Definition: TrackerMuon.cc:21
static constexpr float d0
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
int hwPt() const
Definition: L1Candidate.h:35
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:36
int hwIso() const
Definition: L1Candidate.h:39
float x
#define LogDebug(id)