ATTPCROOT  0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
graph.h
Go to the documentation of this file.
1 //
2 // graph.h
3 // Classes and functions for computing the MST and for
4 // splitting up clusters at gaps
5 //
6 // Author: Jens Wilberg, Lukas Aymans, Christoph Dalitz
7 // Date: 2018-08-30
8 // License: see ../LICENSE
9 //
10 
11 #ifndef MSD_H
12 #define MSD_H
13 class PointCloud;
14 
15 #include <cstddef>
16 #include <vector>
17 
18 // Split *cluster* in multiple new clusters and return the result in
19 // *new_clusters". The mst of the cluster is created and all edges are
20 // removed with a wheigth > *dmax*. The connected comonents are computed
21 // and returned as new clusters if their size is >= *min_size*.
22 void max_step(std::vector<std::vector<size_t>> &new_clusters, const std::vector<size_t> &cluster,
23  const PointCloud &cloud, double dmax, size_t min_size);
24 
25 #endif
hc::cluster
std::vector< size_t > cluster
Definition: hc.h:25
max_step
void max_step(std::vector< std::vector< size_t >> &new_clusters, const std::vector< size_t > &cluster, const PointCloud &cloud, double dmax, size_t min_size)
Definition: graph.cxx:125
PointCloud
Definition: pointcloud.h:60