public class NearestNeighborRMSClusterer extends Object implements ClusteringAlgorithm
Modifier and Type | Field and Description |
---|---|
private double |
_cluster_threshold |
private double |
_meanTime |
private double |
_minChiProb |
private static String |
_NAME |
private double |
_neighbor_threshold |
private double |
_neighborDeltaT |
private double |
_seed_threshold |
private double |
_timeWindow |
Constructor and Description |
---|
NearestNeighborRMSClusterer()
Instantiate NearestNeighborRMS with default thresholds:
seed_threshold = 4*RMS noise neighbor_threshold = 3*RMS noise
cluster_threshold = 4*RMS noise
|
NearestNeighborRMSClusterer(double seed_threshold,
double neighbor_threshold,
double cluster_threshold)
Instantiate NearestNeighborRMS with specified thresholds.
|
Modifier and Type | Method and Description |
---|---|
List<List<FittedRawTrackerHit>> |
findClusters(List<FittedRawTrackerHit> base_hits)
Find clusters using the nearest neighbor algorithm.
|
Collection<Integer> |
getNearestNeighborCells(int cell) |
boolean |
isValidCell(int cell) |
private boolean |
passChisqCut(FittedRawTrackerHit hit) |
private boolean |
passTimingCut(FittedRawTrackerHit hit) |
void |
setClusterThreshold(double cluster_threshold)
Set the cluster threshold.
|
void |
setMeanTime(double _meanTime) |
void |
setNeighborDeltaT(double _neighborDeltaT) |
void |
setNeighborThreshold(double neighbor_threshold)
Set the neighbor threshold.
|
void |
setSeedThreshold(double seed_threshold)
Set the seed threshold.
|
void |
setTimeWindow(double _timeWindow) |
private static String _NAME
private double _seed_threshold
private double _neighbor_threshold
private double _cluster_threshold
private double _meanTime
private double _timeWindow
private double _neighborDeltaT
private final double _minChiProb
public NearestNeighborRMSClusterer(double seed_threshold, double neighbor_threshold, double cluster_threshold)
seed_threshold
- seed thresholdneighbor_threshold
- neighbor thresholdcluster_threshold
- cluster thresholdpublic NearestNeighborRMSClusterer()
public void setMeanTime(double _meanTime)
public void setTimeWindow(double _timeWindow)
public void setNeighborDeltaT(double _neighborDeltaT)
public void setSeedThreshold(double seed_threshold)
seed_threshold
- seed thresholdpublic void setNeighborThreshold(double neighbor_threshold)
neighbor_threshold
- neighbor thresholdpublic void setClusterThreshold(double cluster_threshold)
cluster_threshold
- cluster thresholdpublic List<List<FittedRawTrackerHit>> findClusters(List<FittedRawTrackerHit> base_hits)
findClusters
in interface ClusteringAlgorithm
base_hits
- List of RawTrackerHits to be clusteredprivate boolean passTimingCut(FittedRawTrackerHit hit)
private boolean passChisqCut(FittedRawTrackerHit hit)
public Collection<Integer> getNearestNeighborCells(int cell)
public boolean isValidCell(int cell)
Copyright © 2019. All rights reserved.