Skip to content

Commit 75b5f3c

Browse files
authored
Merge pull request cms-sw#42553 from NJManganelli/master-metoverflowfix
Phase 2 GTT MET cosLUT overflow fix
2 parents db887a8 + 9f6c347 commit 75b5f3c

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

L1Trigger/L1TTrackMatch/interface/L1TkEtMissEmuAlgo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ namespace l1tmetemu {
2929
const unsigned int kCosLUTSize{10};
3030
const unsigned int kCosLUTMagSize{1};
3131
const unsigned int kCosLUTTableSize{10};
32-
const unsigned int kCosLUTBins{1 << kCosLUTTableSize};
32+
const unsigned int kCosLUTBins{(1 << kCosLUTTableSize) + 1};
3333
const unsigned int kCosLUTShift{TTTrack_TrackWord::TrackBitWidths::kPhiSize - kCosLUTTableSize};
3434
const unsigned int kAtanLUTSize{64};
3535
const unsigned int kAtanLUTMagSize{2};

L1Trigger/L1TTrackMatch/plugins/L1TrackerEtMissEmulatorProducer.cc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,6 @@ void L1TrackerEtMissEmulatorProducer::produce(edm::Event& iEvent, const edm::Eve
227227
<< " Emu Cos(Phi): " << cosLUT_[(phiQuadrants_[4] - 1 - globalPhi) >> l1tmetemu::kCosLUTShift]
228228
<< " Emu Sin(Phi): -" << cosLUT_[(globalPhi - phiQuadrants_[3]) >> l1tmetemu::kCosLUTShift] << "\n";
229229
}
230-
} else {
231-
temppx = 0;
232-
temppy = 0;
233230
}
234231

235232
int link_number = (track->phiSector() * 2) + ((EtaSector) ? 0 : 1);

0 commit comments

Comments
 (0)