Skip to content

Commit

Permalink
Merge pull request #46787 from Dr15Jones/fixMulti5x5ClusterAlgo
Browse files Browse the repository at this point in the history
Fix off by 1 error in Multi5x5ClusterAlgo
  • Loading branch information
cmsbuild authored Nov 25, 2024
2 parents 22e7953 + c930ed1 commit 5295006
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RecoEcal/EgammaClusterAlgos/src/Multi5x5ClusterAlgo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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<DetId, int>(hit.first, clusters_.size()));
whichClusCrysBelongsTo_.push_back(std::pair<DetId, int>(hit.first, clusters_.size() - 1));
}
}
}
Expand Down

0 comments on commit 5295006

Please sign in to comment.