Skip to content

Commit

Permalink
Fixing the cell distance calculation in the algorithm.
Browse files Browse the repository at this point in the history
  • Loading branch information
krasznaa committed Apr 19, 2024
1 parent 35f10fa commit 53e0b50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions core/include/traccc/clusterization/impl/sparse_ccl.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ TRACCC_HOST_DEVICE inline bool is_adjacent(const traccc::cell& a,
TRACCC_HOST_DEVICE inline bool is_far_enough(const traccc::cell& a,
const traccc::cell& b) {

assert(a.channel1 >= b.channel1);
return (a.channel1 > (b.channel1 + 1)) || (a.module_link != b.module_link);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ inline void reduce_problem_cell(
* Note that this check now looks in the opposite direction! An
* important difference.
*/
if (traccc::details::is_far_enough(reference_cell, cells.at(j))) {
if (traccc::details::is_far_enough(cells.at(j), reference_cell)) {
break;
}

Expand Down

0 comments on commit 53e0b50

Please sign in to comment.