File Clusterization.hpp¶
-
namespace Acts
Note
This file is foreseen for the
Geometry
module to replaceExtent
Note
this is foreseen for the ‘Geometry’ module
-
namespace Ccl¶
Typedefs
-
using Label = int¶
Functions
-
template<typename CellCollection, typename ClusterCollection, size_t GridDim = 2, typename Connect = DefaultConnect<typename CellCollection::value_type, GridDim>>
ClusterCollection createClusters(CellCollection &cells, Connect connect = Connect())¶ createClusters Conveniance function which runs both labelClusters and createClusters.
-
template<typename CellCollection, size_t GridDim = 2, typename Connect = DefaultConnect<typename CellCollection::value_type, GridDim>>
void labelClusters(CellCollection &cells, Connect connect = Connect())¶ labelClusters
In-place connected component labelling using the Hoshen-Kopelman algorithm. The
Cell
type must have the following functions defined: int getCellRow(const Cell&), int getCellColumn(const Cell&) int& getCellLabel(Cell&)- Parameters
cells – [in] the cell collection to be labeled
connect – [in] the connection type (see DefaultConnect)
-
template<typename CellCollection, typename ClusterCollection, size_t GridDim>
std::enable_if<GridDim != 1 and GridDim != 2, ClusterCollection>::type mergeClusters(CellCollection&)¶ mergeClusters
Merge a set of cells previously labeled (for instance with
labelClusters
) into actual clusters. The Cluster type must have the following function defined: void clusterAddCell(Cluster&, const Cell&)- Returns
nothing
-
template<typename Cell>
struct Connect1D¶ - #include <Acts/Clusterization/Clusterization.hpp>
Subclassed by Acts::Ccl::DefaultConnect< Cell, 1 >
Public Functions
-
ConnectResult operator()(const Cell &ref, const Cell &iter)¶
-
ConnectResult operator()(const Cell &ref, const Cell &iter)¶
-
template<typename Cell>
struct Connect2D¶ - #include <Acts/Clusterization/Clusterization.hpp>
Subclassed by Acts::Ccl::DefaultConnect< Cell, 2 >
Public Functions
-
inline Connect2D()¶
-
inline Connect2D(bool commonCorner)¶
-
ConnectResult operator()(const Cell &ref, const Cell &iter)¶
Public Members
-
bool conn8¶
-
inline Connect2D()¶
-
template<typename Cell, size_t GridDim = 2>
struct DefaultConnect¶ - #include <Acts/Clusterization/Clusterization.hpp>
-
using Label = int¶
-
namespace Ccl¶