Skip to content

Commit e4b07c4

Browse files
authored
Add files via upload
1 parent 41120de commit e4b07c4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

L1Trigger/L1TCaloLayer1/src/L1TCaloLayer1FetchLUTs.cc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,9 @@ bool L1TCaloLayer1FetchLUTs(
197197
calibratedECalInput *= ecalSF.at(phiBin * ecalScaleETBins.size() * 28 + etBin * 28 + etaBin);
198198
if (useLSB)
199199
calibratedECalInput /= caloLSB;
200-
if (ecalInput < ecalZSF.size() / 28 - 1)
200+
if (ecalInput < ecalZSF.size() / 28 - 1)
201201
calibratedECalInput *= ecalZSF.at(ecalInput * 28 + etaBin);
202+
202203
value = calibratedECalInput;
203204
if (fwVersion > 2) {
204205
// Saturate if either decompressed value is over 127.5 GeV or input saturated
@@ -263,8 +264,8 @@ bool L1TCaloLayer1FetchLUTs(
263264
if (useCalib)
264265
calibratedHcalInput *= hcalSF.at(phiBin * hcalScaleETBins.size() * 28 + etBin * 28 + etaBin);
265266
if (useLSB)
266-
calibratedHcalInput /= caloLSB;
267-
if (hcalInput < hcalZSF.size() / 28 - 1)
267+
calibratedHcalInput /= caloLSB;
268+
if (hcalInput < hcalZSF.size() / 28 - 1)
268269
calibratedHcalInput *= hcalZSF.at(hcalInput * 28 + etaBin);
269270
value = calibratedHcalInput;
270271
if (fwVersion > 2) {

0 commit comments

Comments
 (0)