Skip to content

Commit

Permalink
hough - projector?
Browse files Browse the repository at this point in the history
  • Loading branch information
AJPfleger committed Sep 8, 2024
1 parent 49fb1a9 commit f768342
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Core/include/Acts/Seeding/HoughTransformUtils.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,10 @@ Acts::HoughTransformUtils::PeakFinders::IslandsAroundMax<
}
}
// sort the candidate cells descending in content
std::ranges::sort(candidates, std::greater{}, [&yieldMap](std::size_t c) {
return std::tie(yieldMap[c], c);
});
std::ranges::sort(
candidates, [&yieldMap](std::size_t bin1, std::size_t bin2) {
return std::tie(yieldMap[bin1], bin1) > std::tie(yieldMap[bin2], bin2);
});

// now we build islands from the candidate cells, starting with the most
// populated one
Expand Down

0 comments on commit f768342

Please sign in to comment.