File indexing completed on 2024-10-03 05:26:53
0001 #include "DataFormats/L1TMuonPhase2/interface/SAMuon.h"
0002 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0003
0004 using namespace l1t;
0005
0006 SAMuon::SAMuon() : hwCharge_(false), hwZ0_(0), hwD0_(0), hwBeta_(0), word_(0), trackID_(0), tf_(bmtf) {}
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),
0010 hwCharge_(charge),
0011 hwZ0_(z0),
0012 hwD0_(d0),
0013 hwBeta_(0),
0014 word_(0),
0015 trackID_(0),
0016 tf_(bmtf) {}
0017
0018 SAMuon::~SAMuon() {}
0019
0020 void SAMuon::print() const {
0021 LogDebug("SAMuon") << "Standalone Muon: charge=" << hwCharge_ << " pt=" << hwPt() << "," << p4().pt()
0022 << " eta=" << hwEta() << "," << p4().eta() << " phi=" << hwPhi() << "," << p4().phi()
0023 << " z0=" << hwZ0_ << " d0=" << hwD0_ << " isolation=" << hwIso() << " beta=" << hwBeta_
0024 << " quality=" << hwQual();
0025 }