Skip to content

Commit e961e48

Browse files
committed
remove non used varaibles (bis)
1 parent 9aaa256 commit e961e48

2 files changed

Lines changed: 2 additions & 16 deletions

File tree

‎reconstruction/alert/src/main/java/org/jlab/rec/ahdc/KalmanFilter/KalmanFilter.java‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -150,21 +150,16 @@ public void propagation(ArrayList<Track> tracks, final double magfield, boolean
150150
Stepper current_stepper = PostFitPropagator.getStepper();
151151
double s = current_stepper.sTot;
152152
double p_drift = current_stepper.p();
153-
int sum_adc = 0;
154153
double sum_residuals = 0;
155154
double chi2 = 0;
156155
for (Hit hit : AHDC_hits) {
157-
sum_adc += hit.getADC();
158156
sum_residuals += hit.getResidual();
159157
chi2 += Math.pow(hit.getResidual(),2)/hit.MeasurementNoiseMatrix().getEntry(0,0);
160158
}
161-
//track.set_sum_adc(sum_adc);
162159
track.set_sum_residuals(sum_residuals);
163160
track.set_chi2(chi2/(AHDC_hits.size()-3));
164161
track.set_p_drift(p_drift);
165-
track.set_dEdx(sum_adc/s);
166162
track.set_path(s);
167-
//track.set_n_hits(AHDC_hits.size());
168163

169164
/// At the end of the PostFit porpagation to the last layer of the AHDC
170165
/// we project the track on the ATOF surface without any AI ATOF hit indication

‎reconstruction/alert/src/main/java/org/jlab/rec/ahdc/Track/Track.java‎

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ public class Track {
2626
private RadialKFHit beamline_hit = null;
2727

2828
private int trackId = -1; ///< id of the track
29-
//private int n_hits = 0; ///< number of hits
30-
//private int sum_adc = 0; ///< sum of adc (adc)
3129
private double sum_residuals = 0; ///< sum of residuals (mm)
3230
private double chi2 = 0; ///< sum of residuals^2 (mm^2)
3331
// AHDC::track
@@ -37,7 +35,6 @@ public class Track {
3735
private double px0 = 0;
3836
private double py0 = 0;
3937
private double pz0 = 0;
40-
private double dEdx = 0; ///< deposited energy per path length (adc/mm)
4138
private double p_drift = 0; ///< momentum in the drift region (MeV)
4239
private double path = 0; ///< length of the track (mm)
4340
// for the error matrix: first 3 lines in mm^2; last 3 lines in MeV^2 (in the beamline)
@@ -234,20 +231,14 @@ public int get_sum_adc() {
234231
public double get_chi2() {return chi2;}
235232
public double get_sum_residuals() {return sum_residuals;}
236233
// AHDC::track
237-
public void set_dEdx(double _dEdx) { dEdx = _dEdx;}
238234
public void set_p_drift(double _p_drift) { p_drift = _p_drift;}
239235
public void set_path(double _path) { path = _path;}
240236
public double get_dEdx() {
241237
if (path <= 0) {
242-
dEdx = 0;
238+
return 0;
243239
}else {
244-
int sum = 0;
245-
for (Hit h : hits) {
246-
sum += (int) Math.round(h.getADC());
247-
}
248-
dEdx = sum/path;
240+
return get_sum_adc()/path;
249241
}
250-
return dEdx;
251242
}
252243
public double get_p_drift() {return p_drift;}
253244
public double get_path() {return path;}

0 commit comments

Comments
 (0)