Skip to content

Commit

Permalink
Fix off by 1 error in Multi5x5ClusterAlgo
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr15Jones committed Nov 23, 2024
1 parent c867bab commit c930ed1
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 c930ed1

Please sign in to comment.