Skip to content

Commit 707d462

Browse files
authored
Merge pull request #46183 from Dr15Jones/fixSAMuon
Initialize member data in SAMuon
2 parents 7d1afdf + 81c97c1 commit 707d462

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

DataFormats/L1TMuonPhase2/src/SAMuon.cc

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,17 @@
33

44
using namespace l1t;
55

6-
SAMuon::SAMuon() : hwZ0_(0), hwD0_(0), word_(0) {}
6+
SAMuon::SAMuon() : hwCharge_(false), hwZ0_(0), hwD0_(0), hwBeta_(0), word_(0), trackID_(0), tf_(bmtf) {}
77

88
SAMuon::SAMuon(const l1t::Muon& mu, bool charge, uint pt, int eta, int phi, int z0, int d0, uint quality)
9-
: L1Candidate(mu.p4(), pt, eta, phi, quality), hwCharge_(charge), hwZ0_(z0), hwD0_(d0), word_(0), trackID_(0) {}
9+
: L1Candidate(mu.p4(), pt, eta, phi, quality),
10+
hwCharge_(charge),
11+
hwZ0_(z0),
12+
hwD0_(d0),
13+
hwBeta_(0),
14+
word_(0),
15+
trackID_(0),
16+
tf_(bmtf) {}
1017

1118
SAMuon::~SAMuon() {}
1219

0 commit comments

Comments
 (0)