File indexing completed on 2023-10-25 09:39:23
0001 #include "DataFormats/L1TMuonPhase2/interface/SAMuon.h"
0002 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0003
0004 using namespace l1t;
0005
0006 SAMuon::SAMuon() : hwZ0_(0), hwD0_(0), word_(0) {}
0007
0008 SAMuon::SAMuon(const l1t::Muon& mu, bool charge, uint pt, int eta, int phi, int z0, int d0, uint quality)
0009 : L1Candidate(mu.p4(), pt, eta, phi, quality), hwCharge_(charge), hwZ0_(z0), hwD0_(d0), word_(0) {}
0010
0011 SAMuon::~SAMuon() {}
0012
0013 void SAMuon::print() const {
0014 LogDebug("SAMuon") << "Standalone Muon: charge=" << hwCharge_ << " pt=" << hwPt() << "," << p4().pt()
0015 << " eta=" << hwEta() << "," << p4().eta() << " phi=" << hwPhi() << "," << p4().phi()
0016 << " z0=" << hwZ0_ << " d0=" << hwD0_ << " isolation=" << hwIso() << " beta=" << hwBeta_
0017 << " quality=" << hwQual();
0018 }