16 class DetectorClocksData;
17 class DetectorPropertiesData;
38 dbsPoint(
double X = 0.0,
double Y = 0.0,
double dX = 0.0,
double dY = 0.0)
39 : x(
X), y(
Y), dx(dX), dy(dY){};
60 std::set<uint32_t> badChannels,
61 const std::vector<geo::WireID>& wireids = std::vector<geo::WireID>());
62 double getSimilarity(
const std::vector<double> v1,
const std::vector<double> v2);
63 std::vector<unsigned int> findNeighbors(
unsigned int pid,
double threshold,
double threshold2);
64 void computeSimilarity();
66 double getSimilarity2(
const std::vector<double> v1,
const std::vector<double> v2);
67 void computeSimilarity2();
68 double getWidthFactor(
const std::vector<double> v1,
const std::vector<double> v2);
69 void computeWidthFactor();
72 std::vector<std::vector<double>>
fps;
74 std::vector<std::vector<double>>
fsim;
75 std::vector<std::vector<double>>
fsim2;
76 std::vector<std::vector<double>>
fsim3;
104 void run_dbscan_cluster();
105 void run_FN_cluster();
106 void run_FN_naive_cluster();
110 bool ExpandCluster(
unsigned int point ,
111 unsigned int clusterID );
112 std::set<unsigned int> RegionQuery(
unsigned int point);
114 std::vector<unsigned int> RegionQuery_vector(
unsigned int point);
119 #endif // ifndef DBSCANALG_H dbsPoint(double X=0.0, double Y=0.0, double dX=0.0, double dY=0.0)
Reconstruction base classes.
std::vector< uint32_t > fBadWireSum
std::vector< std::vector< double > > fps
the collection of points we are working on
Cluster finding and building.
void Expand(double DX, double DY)
std::vector< std::vector< double > > fsim3
std::vector< unsigned int > fpointId_to_clusterId
mapping point_id -> clusterId
std::vector< dbsPoint > fRect
std::vector< std::vector< double > > fsim
unsigned int fClusterMethod
Which clustering method to use.
std::vector< bool > fvisited
BoundedItem::BoundingBox BoundingBox
General LArSoft Utilities.
Definition of data types for geometry description.
BoundingBox bounds(int x, int y, int w, int h)
std::vector< double > fWirePitch
the pitch of the wires in each plane
std::vector< std::vector< unsigned int > > fclusters
collection of something
Contains all timing reference information for the detector.
std::set< uint32_t > fBadChannels
set of bad channels in this detector
std::vector< std::vector< double > > fsim2
std::vector< bool > fnoise
unsigned int fDistanceMetric
Which distance metric to use.