1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#include "DataFormats/L1TMuonPhase2/interface/SAMuon.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
using namespace l1t;
SAMuon::SAMuon() : hwCharge_(false), hwZ0_(0), hwD0_(0), hwBeta_(0), word_(0), trackID_(0), tf_(bmtf) {}
SAMuon::SAMuon(const l1t::Muon& mu, bool charge, uint pt, int eta, int phi, int z0, int d0, uint quality)
: L1Candidate(mu.p4(), pt, eta, phi, quality),
hwCharge_(charge),
hwZ0_(z0),
hwD0_(d0),
hwBeta_(0),
word_(0),
trackID_(0),
tf_(bmtf) {}
SAMuon::~SAMuon() {}
void SAMuon::print() const {
LogDebug("SAMuon") << "Standalone Muon: charge=" << hwCharge_ << " pt=" << hwPt() << "," << p4().pt()
<< " eta=" << hwEta() << "," << p4().eta() << " phi=" << hwPhi() << "," << p4().phi()
<< " z0=" << hwZ0_ << " d0=" << hwD0_ << " isolation=" << hwIso() << " beta=" << hwBeta_
<< " quality=" << hwQual();
}
|