Skip to content

Commit

Permalink
try projector
Browse files Browse the repository at this point in the history
  • Loading branch information
AJPfleger committed Sep 8, 2024
1 parent 39769aa commit e91cc39
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
4 changes: 1 addition & 3 deletions Core/include/Acts/Clusterization/Clusterization.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -309,9 +309,7 @@ ClusterCollection mergeClusters(CellCollection& cells) {
if constexpr (GridDim > 1) {
// Sort the cells by their cluster label, only needed if more than
// one spatial dimension
std::ranges::sort(cells, [](Cell& lhs, Cell& rhs) {
return getCellLabel(lhs) < getCellLabel(rhs);
});
std::ranges::sort(cells, {}, [](Cell& c) { return getCellLabel(c); });
}

return internal::mergeClustersImpl<CellCollection, ClusterCollection>(cells);
Expand Down
7 changes: 2 additions & 5 deletions Core/include/Acts/Navigation/DetectorNavigator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -406,11 +406,8 @@ class DetectorNavigator {

// Sort properly the surface candidates
auto& nCandidates = nState.surfaceCandidates;
std::ranges::sort(nCandidates, [&](const auto& a, const auto& b) {
// The two path lengths
ActsScalar pathToA = a.objectIntersection.pathLength();
ActsScalar pathToB = b.objectIntersection.pathLength();
return pathToA < pathToB;
std::ranges::sort(nCandidates, {}, [](const auto& c) {
return c.objectIntersection.pathLength();
});
// Set the surface candidate
nState.surfaceCandidateIndex = 0;
Expand Down

0 comments on commit e91cc39

Please sign in to comment.