Skip to content

Commit 5b527ae

Browse files
authored
Merge pull request #45481 from smuzaffar/fix-warning-Phase2L1GMT
[L1] Fix Warnings: Remove unused variables
2 parents 6648f85 + 7c417cc commit 5b527ae

File tree

3 files changed

+0
-11
lines changed

3 files changed

+0
-11
lines changed

L1Trigger/Phase2L1GMT/plugins/Phase2L1TGMTStubProducer.cc

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,6 @@ void Phase2L1TGMTStubProducer::produce(edm::Event& iEvent, const edm::EventSetup
111111
l1t::MuonStubCollection stubs;
112112
l1t::MuonStubCollection stubsKMTF;
113113

114-
uint count0 = 0;
115-
uint count1 = 0;
116-
uint count2 = 0;
117-
uint count3 = 0;
118-
uint count4 = 0;
119-
120114
l1t::MuonStubCollection stubsEndcap = procEndcap_->makeStubs(*cscDigis, *rpcDigis, translator_, iSetup);
121115
for (auto& stub : stubsEndcap) {
122116
stubs.push_back(stub);

L1Trigger/Phase2L1GMT/src/KMTFCore.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,6 @@ void KMTFCore::propagate(l1t::KMTFTrack& track) {
440440
if (KBound < -(pow(2, BITSCURV - 3) - 1))
441441
KBound = -(pow(2, BITSCURV - 3) - 1);
442442

443-
int deltaK = 0;
444443
int KNew = K;
445444
if (step == 1) {
446445
ap_ufixed<17, 0> eLoss = ap_ufixed<17, 0>(eLoss_[step - 1]);
@@ -1114,9 +1113,7 @@ uint KMTFCore::etaStubRank(const l1t::MuonStubRef& stub) {
11141113
}
11151114

11161115
void KMTFCore::calculateEta(l1t::KMTFTrack& track) {
1117-
uint pattern = track.hitPattern();
11181116
int wheel = track.stubs()[0]->etaRegion();
1119-
uint awheel = fabs(wheel);
11201117
int sign = 1;
11211118
if (wheel < 0)
11221119
sign = -1;
@@ -1147,7 +1144,6 @@ uint KMTFCore::matchAbs(std::map<uint, uint>& info, uint i, uint j) {
11471144
}
11481145

11491146
int KMTFCore::ptLUT(int K) {
1150-
int charge = (K >= 0) ? +1 : -1;
11511147
float lsb = 1.25 / float(1 << (BITSCURV - 1));
11521148
float FK = fabs(K);
11531149
int pt = 0;

L1Trigger/Phase2L1GMT/src/L1TPhase2GMTBarrelStubProcessor.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@ l1t::MuonStubCollection L1TPhase2GMTBarrelStubProcessor::makeStubs(const L1Phase
147147
sN = sN | (wr1 << 30);
148148
sN = sN | (wq << 51);
149149
sN = sN | (wr2 << 55);
150-
unsigned int index = (station - 1) * 4 + phiDigi.index();
151150
os << std::setw(0) << std::dec << sector << " " << wheel << " " << station << " ";
152151
os << std::uppercase << std::setfill('0') << std::setw(16) << std::hex << uint64_t(sN) << " ";
153152
}

0 commit comments

Comments
 (0)