Skip to content

Commit

Permalink
actual changes ...
Browse files Browse the repository at this point in the history
  • Loading branch information
cvarni committed Oct 4, 2024
1 parent a89708c commit 225a488
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Core/include/Acts/Clusterization/TimedClusterization.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ concept HasRetrievableTimeInfo = requires(Cell cell) {

template <Acts::Ccl::HasRetrievableTimeInfo Cell, std::size_t N>
struct TimedConnect : public Acts::Ccl::DefaultConnect<Cell, N> {
Acts::ActsScalar timeTollerance{std::numeric_limits<Acts::ActsScalar>::max()};
Acts::ActsScalar timeTolerance{std::numeric_limits<Acts::ActsScalar>::max()};

TimedConnect() = default;
TimedConnect(Acts::ActsScalar time);
TimedConnect(Acts::ActsScalar time, bool conn)
TimedConnect(Acts::ActsScalar time, bool commonCorner)
requires(N == 2);
~TimedConnect() override = default;

Expand Down
8 changes: 4 additions & 4 deletions Core/include/Acts/Clusterization/TimedClusterization.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ namespace Acts::Ccl {

template <Acts::Ccl::HasRetrievableTimeInfo Cell, std::size_t N>
TimedConnect<Cell, N>::TimedConnect(Acts::ActsScalar time)
: timeTollerance(time) {}
: timeTolerance(time) {}

template <Acts::Ccl::HasRetrievableTimeInfo Cell, std::size_t N>
TimedConnect<Cell, N>::TimedConnect(Acts::ActsScalar time, bool conn)
TimedConnect<Cell, N>::TimedConnect(Acts::ActsScalar time, bool commonCorner)
requires(N == 2)
: Acts::Ccl::DefaultConnect<Cell, N>(conn), timeTollerance(time) {}
: Acts::Ccl::DefaultConnect<Cell, N>(commonCorner), timeTolerance(time) {}

template <Acts::Ccl::HasRetrievableTimeInfo Cell, std::size_t N>
Acts::Ccl::ConnectResult TimedConnect<Cell, N>::operator()(
Expand All @@ -26,7 +26,7 @@ Acts::Ccl::ConnectResult TimedConnect<Cell, N>::operator()(
return spaceCompatibility;
}

if (std::abs(getCellTime(ref) - getCellTime(iter)) < timeTollerance) {
if (std::abs(getCellTime(ref) - getCellTime(iter)) < timeTolerance) {
return Acts::Ccl::ConnectResult::eConn;
}

Expand Down

0 comments on commit 225a488

Please sign in to comment.