Skip to content

Commit

Permalink
test: move everything to .hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
cvarni committed Sep 30, 2024
1 parent 635737f commit 0cad267
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
15 changes: 14 additions & 1 deletion Core/include/Acts/Clusterization/TimedClusterization.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,20 @@ struct TimedConnect : public Acts::Ccl::DefaultConnect<Cell, GridDim> {
requires(GridDim == 2)
: Acts::Ccl::DefaultConnect<Cell, GridDim>(conn), timeTollerance(time) {}

ConnectResult operator()(const Cell& ref, const Cell& iter) const;
ConnectResult operator()(const Cell& ref, const Cell& iter) const {
Acts::Ccl::ConnectResult conRes =
Acts::Ccl::DefaultConnect<Cell, GridDim>::operator()(ref, iter);
if (conRes != Acts::Ccl::ConnectResult::eConn) {
return conRes;
}

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

return Acts::Ccl::ConnectResult::eNoConn;
}
};

} // namespace Acts::Ccl
Expand Down
4 changes: 2 additions & 2 deletions Core/include/Acts/Clusterization/TimedClusterization.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// file, You can obtain one at http://mozilla.org/MPL/2.0/.

namespace Acts::Ccl {

/*
template <HasRetrievableTimeInfo Cell, std::size_t GridDim>
ConnectResult TimedConnect<Cell, GridDim>::operator()(const Cell& ref,
const Cell& iter) const {
Expand All @@ -24,5 +24,5 @@ ConnectResult TimedConnect<Cell, GridDim>::operator()(const Cell& ref,
return Acts::Ccl::ConnectResult::eNoConn;
}

*/
} // namespace Acts::Ccl

0 comments on commit 0cad267

Please sign in to comment.