Skip to content

Commit

Permalink
Merge pull request #46183 from Dr15Jones/fixSAMuon
Browse files Browse the repository at this point in the history
Initialize member data in SAMuon
  • Loading branch information
cmsbuild authored Oct 2, 2024
2 parents 7d1afdf + 81c97c1 commit 707d462
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions DataFormats/L1TMuonPhase2/src/SAMuon.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,17 @@

using namespace l1t;

SAMuon::SAMuon() : hwZ0_(0), hwD0_(0), word_(0) {}
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), word_(0), trackID_(0) {}
: L1Candidate(mu.p4(), pt, eta, phi, quality),
hwCharge_(charge),
hwZ0_(z0),
hwD0_(d0),
hwBeta_(0),
word_(0),
trackID_(0),
tf_(bmtf) {}

SAMuon::~SAMuon() {}

Expand Down

0 comments on commit 707d462

Please sign in to comment.