Skip to content

Commit

Permalink
Merge pull request #42553 from NJManganelli/master-metoverflowfix
Browse files Browse the repository at this point in the history
Phase 2 GTT MET cosLUT overflow fix
  • Loading branch information
cmsbuild authored Sep 11, 2023
2 parents db887a8 + 9f6c347 commit 75b5f3c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion L1Trigger/L1TTrackMatch/interface/L1TkEtMissEmuAlgo.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace l1tmetemu {
const unsigned int kCosLUTSize{10};
const unsigned int kCosLUTMagSize{1};
const unsigned int kCosLUTTableSize{10};
const unsigned int kCosLUTBins{1 << kCosLUTTableSize};
const unsigned int kCosLUTBins{(1 << kCosLUTTableSize) + 1};
const unsigned int kCosLUTShift{TTTrack_TrackWord::TrackBitWidths::kPhiSize - kCosLUTTableSize};
const unsigned int kAtanLUTSize{64};
const unsigned int kAtanLUTMagSize{2};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,6 @@ void L1TrackerEtMissEmulatorProducer::produce(edm::Event& iEvent, const edm::Eve
<< " Emu Cos(Phi): " << cosLUT_[(phiQuadrants_[4] - 1 - globalPhi) >> l1tmetemu::kCosLUTShift]
<< " Emu Sin(Phi): -" << cosLUT_[(globalPhi - phiQuadrants_[3]) >> l1tmetemu::kCosLUTShift] << "\n";
}
} else {
temppx = 0;
temppy = 0;
}

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

0 comments on commit 75b5f3c

Please sign in to comment.