Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:04:35

0001 #include "DataFormats/L1TMuonPhase2/interface/TrackerMuon.h"
0002 
0003 using namespace l1t;
0004 
0005 TrackerMuon::TrackerMuon() : hwZ0_(0), hwD0_(0) {}
0006 
0007 TrackerMuon::TrackerMuon(
0008     const edm::Ptr<L1TTTrackType>& trk, bool charge, uint pt, int eta, int phi, int z0, int d0, uint quality)
0009     : L1Candidate(LorentzVector(trk->momentum().x(), trk->momentum().y(), trk->momentum().z(), trk->momentum().mag()),
0010                   pt,
0011                   eta,
0012                   phi,
0013                   quality),
0014       trkPtr_(trk),
0015       hwCharge_(charge),
0016       hwZ0_(z0),
0017       hwD0_(d0),
0018       hwBeta_(15) {}
0019 
0020 TrackerMuon::~TrackerMuon() {}
0021 
0022 void TrackerMuon::print() const {
0023   LogDebug("TrackerMuon") << "Tracker Muon : charge=" << hwCharge_ << " pt=" << hwPt() << "," << p4().pt()
0024                           << " eta=" << hwEta() << "," << p4().eta() << " phi=" << hwPhi() << "," << p4().phi()
0025                           << " z0=" << hwZ0_ << " d0=" << hwD0_ << " isolation=" << hwIso() << " beta=" << hwBeta_
0026                           << " quality=" << hwQual();
0027 }