ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
Acts::Ccl::Connect2D< Cell > Struct Template Reference

Default connection type for 2-D grids with 4- or 8-cell connectivity. More...

#include <Acts/Clusterization/Clusterization.hpp>

Inheritance diagram for Acts::Ccl::Connect2D< Cell >:
[legend]

Public Member Functions

 Connect2D (bool commonCorner)
 Constructor.
virtual ConnectResult operator() (const Cell &ref, const Cell &iter) const
 Check if two cells are connected.

Public Attributes

bool conn8 {true}
 Whether to use 8-cell connectivity (true) or 4-cell connectivity (false).

Detailed Description

template<typename Cell>
requires (Acts::Ccl::HasRetrievableColumnInfo<Cell> && Acts::Ccl::HasRetrievableRowInfo<Cell>)
struct Acts::Ccl::Connect2D< Cell >

Default connection type for 2-D grids with 4- or 8-cell connectivity.

Constructor & Destructor Documentation

◆ Connect2D()

template<typename Cell>
Acts::Ccl::Connect2D< Cell >::Connect2D ( bool commonCorner)
explicit

Constructor.

Parameters
commonCornerWhether cells sharing only a corner are considered connected

Member Function Documentation

◆ operator()()

template<typename Cell>
virtual ConnectResult Acts::Ccl::Connect2D< Cell >::operator() ( const Cell & ref,
const Cell & iter ) const
virtual

Check if two cells are connected.

Parameters
refReference cell
iterCandidate cell
Returns
Connection result