From 36b2cb02fbb72a78c5790775c265474510eb92dc Mon Sep 17 00:00:00 2001 From: Stephanie Kwan Date: Wed, 16 Oct 2024 17:30:48 +0200 Subject: [PATCH] fix out of bound error --- L1Trigger/L1CaloTrigger/interface/Phase2L1RCT.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/L1Trigger/L1CaloTrigger/interface/Phase2L1RCT.h b/L1Trigger/L1CaloTrigger/interface/Phase2L1RCT.h index a51cf7f25f79f..066fa79c2f785 100644 --- a/L1Trigger/L1CaloTrigger/interface/Phase2L1RCT.h +++ b/L1Trigger/L1CaloTrigger/interface/Phase2L1RCT.h @@ -1236,7 +1236,7 @@ inline p2eg::clusterInfo p2eg::getBremsValuesPos(p2eg::crystal tempX[p2eg::CRYST inline p2eg::clusterInfo p2eg::getBremsValuesNeg(p2eg::crystal tempX[p2eg::CRYSTAL_IN_ETA][p2eg::CRYSTAL_IN_PHI], ap_uint<5> seed_eta, ap_uint<5> seed_phi) { - ap_uint<12> temp[p2eg::CRYSTAL_IN_ETA + 2][p2eg::CRYSTAL_IN_PHI + 4]; + ap_uint<12> temp[p2eg::CRYSTAL_IN_ETA + 2][p2eg::CRYSTAL_IN_PHI + 7]; ap_uint<12> phi0eta[3], phi1eta[3], phi2eta[3], phi3eta[3], phi4eta[3]; ap_uint<12> eta_slice[3]; @@ -1245,7 +1245,7 @@ inline p2eg::clusterInfo p2eg::getBremsValuesNeg(p2eg::crystal tempX[p2eg::CRYST // Initialize all entries in a new ((15+2)x(20+4)) array to be zero. for (int i = 0; i < (p2eg::CRYSTAL_IN_ETA + 2); i++) { - for (int j = 0; j < (p2eg::CRYSTAL_IN_PHI + 4); j++) { + for (int j = 0; j < (p2eg::CRYSTAL_IN_PHI + 7); j++) { temp[i][j] = 0; } }