Skip to content

Commit

Permalink
Merge pull request #43922 from ccahoughton/backport-TrackJetEtaQuickFix
Browse files Browse the repository at this point in the history
Backport track jet eta quick fix
  • Loading branch information
cmsbuild authored Feb 12, 2024
2 parents b42767c + 732215c commit 2e79e50
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions L1Trigger/L1TTrackMatch/plugins/L1TrackJetEmulatorProducer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,13 @@ void L1TrackJetEmulatorProducer::produce(Event &iEvent, const EventSetup &iSetup
// Eta bin
int j = eta_bin_firmwareStyle(L1TrkPtrs_[k]->getTanlWord()); //Function defined in L1TrackJetClustering.h

//This is a quick fix to eta going outside of scope - also including protection against phi going outside
//of scope as well. The eta index, j, cannot be less than zero or greater than 23 (the number of eta bins
//minus one). The phi index, i, cannot be less than zero or greater than 26 (the number of phi bins
//minus one).
if ((j < 0) || (j > (etaBins_ - 1)) || (i < 0) || (i > (phiBins_ - 1)))
continue;

if (trkpt < pt_intern(trkPtMax_))
epbins[i][j].pTtot += trkpt;
else
Expand Down

0 comments on commit 2e79e50

Please sign in to comment.