CMS 3D CMS Logo

TrackerMuon.cc
Go to the documentation of this file.
1 
3 
4 using namespace l1t;
5 
6 TrackerMuon::TrackerMuon() : hwZ0_(0), hwD0_(0) {}
7 
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 
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
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)