From c930ed12d2e393b9d656f98279a7606603eb3a65 Mon Sep 17 00:00:00 2001 From: Christopher Jones Date: Sat, 23 Nov 2024 15:01:55 -0600 Subject: [PATCH] Fix off by 1 error in Multi5x5ClusterAlgo --- RecoEcal/EgammaClusterAlgos/src/Multi5x5ClusterAlgo.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RecoEcal/EgammaClusterAlgos/src/Multi5x5ClusterAlgo.cc b/RecoEcal/EgammaClusterAlgos/src/Multi5x5ClusterAlgo.cc index bce173c5978d7..86fa592aea5ee 100644 --- a/RecoEcal/EgammaClusterAlgos/src/Multi5x5ClusterAlgo.cc +++ b/RecoEcal/EgammaClusterAlgos/src/Multi5x5ClusterAlgo.cc @@ -137,7 +137,7 @@ namespace { clusters_.push_back(std::move(c)); if (reassignSeedCrysToClusterItSeeds_) { for (auto const& hit : clusters_.back().hits()) { - whichClusCrysBelongsTo_.push_back(std::pair(hit.first, clusters_.size())); + whichClusCrysBelongsTo_.push_back(std::pair(hit.first, clusters_.size() - 1)); } } }