Skip to content

Commit

Permalink
Update NearestNeighborRMSClusterer.java
Browse files Browse the repository at this point in the history
  • Loading branch information
rodwyer100 authored Jun 28, 2024
1 parent 5b15ba6 commit 05f74f1
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ public List<List<LCRelation>> findClusters(List<LCRelation> fittedHits) {
// Get the signal from the readout chip
double signal = FittedRawTrackerHit.getAmp(fittedHit);
double noiseRMS = 0;
//((HpsSiSensor) rawHit.getDetectorElement()).isBadChannel(strip)
for(int sampleN = 0; sampleN < HPSSVTConstants.TOTAL_NUMBER_OF_SAMPLES; sampleN++){
noiseRMS += ((HpsSiSensor) rawHit.getDetectorElement()).getNoise(channel_number, sampleN);
}
Expand Down Expand Up @@ -255,7 +254,6 @@ public List<List<LCRelation>> findClusters(List<LCRelation> fittedHits) {

LCRelation neighbor_hit = channel_to_hit.get(channel);
if(_doTimeError==1.0){
//ADD NEIGHBORSIGMA AS CONFIGURABLE PARAMETER
if (Math.abs(FittedRawTrackerHit.getT0(neighbor_hit) - cluster_weighted_time / time_signal)/FittedRawTrackerHit.getT0Err(neighbor_hit) > _neighborDeltaTSigma) {
continue;
}
Expand Down Expand Up @@ -340,7 +338,6 @@ private ArrayList<List<LCRelation>> hasV(List<LCRelation> cluster){
param.setAmp(FittedRawTrackerHit.getAmp(cluster.get(index2))/2.0);
}
}
//DIP SEEMS VERIFIED
vloc.add(maxChan);
ArrayList<List<LCRelation>> clusters = new ArrayList<List<LCRelation>>();
for(int I=0;I<vloc.size()-1;I++){
Expand Down

0 comments on commit 05f74f1

Please sign in to comment.