public class NearestNeighbor extends Object implements ClusteringAlgorithm
Modifier and Type | Field and Description |
---|---|
private static String |
_NAME |
private double |
_neighbor_threshold |
private double |
_seed_threshold |
Constructor and Description |
---|
NearestNeighbor()
Instantiate NearestNeighborClusteringAlgorithm with default thresholds:
seed_threshold = 4000 electrons
neighbor_threhold = 2000 electrons
|
NearestNeighbor(double seed_threshold,
double neighbor_threshold)
Instantiate NearestNeighborClusteringAlgorithm with specified thresholds.
|
Modifier and Type | Method and Description |
---|---|
List<List<RawTrackerHit>> |
findClusters(SiSensorElectrodes electrodes,
ReadoutChip readout_chip,
List<RawTrackerHit> raw_hits)
Find clusters using the nearest neighbor algorithm.
|
String |
getName()
Return the name of the clustering algorithm.
|
double |
getNeighborThreshold()
Return the neighbor threshold.
|
double |
getSeedThreshold()
Return the seed threshold.
|
void |
setNeighborThreshold(double neighbor_threshold)
Set the neighbor threshold.
|
void |
setSeedThreshold(double seed_threshold)
Set the seed threshold.
|
private static String _NAME
private double _seed_threshold
private double _neighbor_threshold
public NearestNeighbor(double seed_threshold, double neighbor_threshold)
seed_threshold
- seed threholdneighbor_threshold
- neighbor thresholdpublic NearestNeighbor()
public void setSeedThreshold(double seed_threshold)
seed_threshold
- seed thresholdpublic void setNeighborThreshold(double neighbor_threshold)
neighbor_threshold
- neighbor thresholdpublic double getSeedThreshold()
public double getNeighborThreshold()
public String getName()
public List<List<RawTrackerHit>> findClusters(SiSensorElectrodes electrodes, ReadoutChip readout_chip, List<RawTrackerHit> raw_hits)
findClusters
in interface ClusteringAlgorithm
electrodes
- electrodes we are clusteringreadout_chip
- readout chip for these electrodesraw_hits
- List of RawTrackerHits to be clusteredCopyright © 2016 Linear Collider Detector (LCD). All rights reserved.