Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
cvarni committed Oct 4, 2024
1 parent baf3da6 commit 38a115c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
8 changes: 2 additions & 6 deletions Examples/Algorithms/TrackFinding/src/SeedingAlgorithm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,12 +261,8 @@ ActsExamples::ProcessCode ActsExamples::SeedingAlgorithm::execute(
}
const auto* firstEl = coll.front();
const auto* lastEl = coll.back();
if (firstEl->radius() < minRange) {
minRange = firstEl->radius();
}
if (lastEl->radius() > maxRange) {
maxRange = lastEl->radius();
}
minRange = std::min(firstEl->radius(), minRange);
maxRange = std::max(lastEl->radius(), maxRange);
}

std::array<std::vector<std::size_t>, 2ul> navigation;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,12 +287,8 @@ ActsExamples::ProcessCode ActsExamples::SeedingAlgorithmHashing::execute(
}
const auto* firstEl = coll.front();
const auto* lastEl = coll.back();
if (firstEl->radius() < minRange) {
minRange = firstEl->radius();
}
if (lastEl->radius() > maxRange) {
maxRange = lastEl->radius();
}
minRange = std::min(firstEl->radius(), minRange);
maxRange = std::max(lastEl->radius(), maxRange);
}

std::array<std::vector<std::size_t>, 2ul> navigation;
Expand Down

0 comments on commit 38a115c

Please sign in to comment.