diff --git a/L1Trigger/L1TTrackMatch/interface/L1TkEtMissEmuAlgo.h b/L1Trigger/L1TTrackMatch/interface/L1TkEtMissEmuAlgo.h index 9243516fcd04f..846d4a9d4d445 100644 --- a/L1Trigger/L1TTrackMatch/interface/L1TkEtMissEmuAlgo.h +++ b/L1Trigger/L1TTrackMatch/interface/L1TkEtMissEmuAlgo.h @@ -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}; diff --git a/L1Trigger/L1TTrackMatch/plugins/L1TrackerEtMissEmulatorProducer.cc b/L1Trigger/L1TTrackMatch/plugins/L1TrackerEtMissEmulatorProducer.cc index aa20f48176d57..44b0ee613a2ad 100644 --- a/L1Trigger/L1TTrackMatch/plugins/L1TrackerEtMissEmulatorProducer.cc +++ b/L1Trigger/L1TTrackMatch/plugins/L1TrackerEtMissEmulatorProducer.cc @@ -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);