Skip to content

Commit

Permalink
missed things
Browse files Browse the repository at this point in the history
  • Loading branch information
AJPfleger committed Sep 8, 2024
1 parent 9dda03f commit 16828c0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Core/include/Acts/Navigation/MultiLayerNavigation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ class MultiLayerNavigation : public IInternalNavigation {
std::vector<const Acts::Surface*>& surfaces) const {
// sorting the surfaces according to their radial distance
std::ranges::sort(surfaces, {}, [&gctx](const auto& s) {
const auto& c = s->center(gctx);
return std::tie(c.x(), c.y(), c.z());
return std::tie(s->center(gctx).x(), s->center(gctx).y(),
s->center(gctx).z());
});

// Remove the duplicates
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,6 @@ void Acts::CylindricalSpacePointGridCreator::fillGrid(
/// sort SPs in R for each filled bin
for (std::size_t binIndex : rBinsIndex) {
auto& rbin = grid.atPosition(binIndex);
std::ranges::sort(rbin, {},
[](const auto& rb) -> bool { return rb->radius(); });
std::ranges::sort(rbin, {}, [](const auto& rb) { return rb->radius(); });
}
}
3 changes: 1 addition & 2 deletions Core/src/TrackFitting/GsfMixtureReduction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ void reduceWithKLDistanceImpl(std::vector<Acts::GsfComponent> &cmpCache,
}

// Remove all components which are labeled with weight -1
std::ranges::sort(cmpCache, {},
[&](const auto &c) { return proj(c).weight; });
std::ranges::sort(cmpCache, {}, [](const auto &c) { return proj(c).weight; });
cmpCache.erase(
std::remove_if(cmpCache.begin(), cmpCache.end(),
[&](const auto &a) { return proj(a).weight == -1.0; }),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
#include "ActsExamples/Framework/WhiteBoard.hpp"
#include "ActsExamples/Utilities/EventDataTransforms.hpp"

#include <tuple>
#include <algorithm>
#include <tuple>

using namespace ActsExamples;
using namespace Acts::UnitLiterals;
Expand Down

0 comments on commit 16828c0

Please sign in to comment.