@@ -17,6 +17,10 @@ public class Track {
1717 private final ArrayList <Hit > hits = new ArrayList <>();
1818
1919 private int trackId = -1 ; ///< id of the track
20+ private int n_hits = 0 ; ///< number of hits
21+ private int sum_adc = 0 ; ///< sum of adc (adc)
22+ private double sum_residuals = 0 ; ///< sum of residuals (mm)
23+ private double chi2 = 0 ; ///< sum of residuals^2 (mm^2)
2024 // AHDC::Track
2125 private double x0 = 0 ;
2226 private double y0 = 0 ;
@@ -26,11 +30,7 @@ public class Track {
2630 private double pz0 = 0 ;
2731 private double dEdx = 0 ; ///< deposited energy per path length (adc/mm)
2832 private double p_drift = 0 ; ///< momentum in the drift region (MeV)
29- private int n_hits = 0 ; ///< number of hits
3033 private double path = 0 ; ///< length of the track (mm)
31- private int sum_adc = 0 ; ///< sum of adc (adc)
32- private double chi2 = 0 ; ///< sum of residuals^2 (mm^2)
33- private double sum_residuals = 0 ; ///< sum of residuals (mm)
3434 // AHDC::KFTrack
3535 private double x0_kf = 0 ;
3636 private double y0_kf = 0 ;
@@ -40,11 +40,7 @@ public class Track {
4040 private double pz0_kf = 0 ;
4141 private double dEdx_kf = 0 ; ///< deposited energy per path length (adc/mm)
4242 private double p_drift_kf = 0 ; ///< momentum in the drift region (MeV)
43- private int n_hits_kf = 0 ; ///< number of hits
4443 private double path_kf = 0 ; ///< length of the track (mm)
45- private int sum_adc_kf = 0 ; ///< sum of adc (adc)
46- private double chi2_kf = 0 ; ///< sum of residuals^2 (mm^2)
47- private double sum_residuals_kf = 0 ; ///< sum of residuals (mm)
4844
4945 public Track (List <Cluster > clusters ) {
5046 this ._Clusters = clusters ;
@@ -177,42 +173,32 @@ public double getPy0_kf() {
177173 public double getPz0_kf () {
178174 return pz0_kf ;
179175 }
180-
176+
177+ // Same for Track and KFTrack
181178 public void set_trackId (int _trackId ) { trackId = _trackId ;}
182- public int get_trackId () {return trackId ;}
183- // AHDC::Track
184- public void set_dEdx (double _dEdx ) { dEdx = _dEdx ;}
185- public void set_p_drift (double _p_drift ) { p_drift = _p_drift ;}
186179 public void set_n_hits (int _n_hits ) { n_hits = _n_hits ;}
187- public void set_path (double _path ) { path = _path ;}
188180 public void set_sum_adc (int _sum_adc ) { sum_adc = _sum_adc ;}
189181 public void set_chi2 (double _chi2 ) { chi2 = _chi2 ;}
190182 public void set_sum_residuals (double _sum_residuals ) { sum_residuals = _sum_residuals ;}
191-
192- public double get_dEdx () {return dEdx ;}
193- public double get_p_drift () {return p_drift ;}
183+ public int get_trackId () {return trackId ;}
194184 public int get_n_hits () {return n_hits ;}
195- public double get_path () {return path ;}
196185 public int get_sum_adc () {return sum_adc ;}
197186 public double get_chi2 () {return chi2 ;}
198187 public double get_sum_residuals () {return sum_residuals ;}
188+ // AHDC::Track
189+ public void set_dEdx (double _dEdx ) { dEdx = _dEdx ;}
190+ public void set_p_drift (double _p_drift ) { p_drift = _p_drift ;}
191+ public void set_path (double _path ) { path = _path ;}
192+ public double get_dEdx () {return dEdx ;}
193+ public double get_p_drift () {return p_drift ;}
194+ public double get_path () {return path ;}
199195
200196 // AHDC::KFTrack
201-
202197 public void set_dEdx_kf (double _dEdx_kf ) { dEdx_kf = _dEdx_kf ;}
203198 public void set_p_drift_kf (double _p_drift_kf ) { p_drift_kf = _p_drift_kf ;}
204- public void set_n_hits_kf (int _n_hits_kf ) { n_hits_kf = _n_hits_kf ;}
205199 public void set_path_kf (double _path_kf ) { path_kf = _path_kf ;}
206- public void set_sum_adc_kf (int _sum_adc_kf ) { sum_adc_kf = _sum_adc_kf ;}
207- public void set_chi2_kf (double _chi2_kf ) { chi2_kf = _chi2_kf ;}
208- public void set_sum_residuals_kf (double _sum_residuals_kf ) { sum_residuals_kf = _sum_residuals_kf ;}
209-
210200 public double get_dEdx_kf () {return dEdx_kf ;}
211201 public double get_p_drift_kf () {return p_drift_kf ;}
212- public int get_n_hits_kf () {return n_hits_kf ;}
213202 public double get_path_kf () {return path_kf ;}
214- public int get_sum_adc_kf () {return sum_adc_kf ;}
215- public double get_chi2_kf () {return chi2_kf ;}
216- public double get_sum_residuals_kf () {return sum_residuals_kf ;}
217203
218204}
0 commit comments