From fdf8e5c77899b4f4785f5b14dd8a93ba8e5ad74a Mon Sep 17 00:00:00 2001 From: Nathan Baltzell Date: Thu, 8 Oct 2026 18:39:21 -0400 Subject: [PATCH] remove unused stuff --- .../src/main/java/org/jlab/rec/cvt/cross/Cross.java | 1 - .../main/java/org/jlab/rec/cvt/fit/CircleFitter.java | 12 ++++++------ .../org/jlab/rec/cvt/fit/HelicalTrackFitter.java | 2 +- .../org/jlab/rec/cvt/fit/StraightTrackFitter.java | 10 +++------- 4 files changed, 10 insertions(+), 15 deletions(-) diff --git a/reconstruction/cvt/src/main/java/org/jlab/rec/cvt/cross/Cross.java b/reconstruction/cvt/src/main/java/org/jlab/rec/cvt/cross/Cross.java index 2dfc4b60e0..f2d587133a 100644 --- a/reconstruction/cvt/src/main/java/org/jlab/rec/cvt/cross/Cross.java +++ b/reconstruction/cvt/src/main/java/org/jlab/rec/cvt/cross/Cross.java @@ -27,7 +27,6 @@ public class Cross extends ArrayList implements Comparable { */ private static final long serialVersionUID = 5317526429163382618L; public boolean isInSeed = false; - private double cCrossRadius = 0; /** * @param detector SVT or BMT diff --git a/reconstruction/cvt/src/main/java/org/jlab/rec/cvt/fit/CircleFitter.java b/reconstruction/cvt/src/main/java/org/jlab/rec/cvt/fit/CircleFitter.java index df954d983b..4b147e3370 100644 --- a/reconstruction/cvt/src/main/java/org/jlab/rec/cvt/fit/CircleFitter.java +++ b/reconstruction/cvt/src/main/java/org/jlab/rec/cvt/fit/CircleFitter.java @@ -34,8 +34,8 @@ public class CircleFitter { private double _dca; // the distance of closest approach to the origin private double _chi2; // the chi^2 value of the fit - private double _xpca; // x coord. of the point of closest approach to the origin - private double _ypca; // y coord. of the point of closest approach to the origin + //private double _xpca; // x coord. of the point of closest approach to the origin + //private double _ypca; // y coord. of the point of closest approach to the origin private double[] _covr; // the elements of the symmetric 3x3 covariance matrix of the parameters rho, phi, dca @@ -231,8 +231,8 @@ public boolean fitStatus(List xm, List ym, List wm, int _rho = rhoFit + Delta_rho; _phi = phiFit + Delta_phi; _dca = docaFit + Delta_doca; - _xpca = _xx0 + _dca * Math.sin(phiFit); - _ypca = _yy0 - _dca * Math.cos(phiFit); + //_xpca = _xx0 + _dca * Math.sin(phiFit); + //_ypca = _yy0 - _dca * Math.cos(phiFit); if(_rho==0 || Double.isNaN(_rho)) return false; @@ -320,8 +320,8 @@ private void propagatePars(double xr, double yr, double x, double y, double cosp _phi += 2. * Math.PI; } // update parameters - _xpca = _xref + _dca * Math.sin(_phi); - _ypca = _yref - _dca * Math.cos(_phi); + //_xpca = _xref + _dca * Math.sin(_phi); + //_ypca = _yref - _dca * Math.cos(_phi); } public CircleFitPars getFit() { diff --git a/reconstruction/cvt/src/main/java/org/jlab/rec/cvt/fit/HelicalTrackFitter.java b/reconstruction/cvt/src/main/java/org/jlab/rec/cvt/fit/HelicalTrackFitter.java index af77f44273..c10bf31a7b 100644 --- a/reconstruction/cvt/src/main/java/org/jlab/rec/cvt/fit/HelicalTrackFitter.java +++ b/reconstruction/cvt/src/main/java/org/jlab/rec/cvt/fit/HelicalTrackFitter.java @@ -99,7 +99,6 @@ public FitStatus fit(List X, List Y, List Z, List X, List Y, List Z, List 0) { averageChi2 = chi2 / passed_fits; if (averageChi2 > avechi2Max) { diff --git a/reconstruction/cvt/src/main/java/org/jlab/rec/cvt/fit/StraightTrackFitter.java b/reconstruction/cvt/src/main/java/org/jlab/rec/cvt/fit/StraightTrackFitter.java index 0a3c4be174..3a848528be 100644 --- a/reconstruction/cvt/src/main/java/org/jlab/rec/cvt/fit/StraightTrackFitter.java +++ b/reconstruction/cvt/src/main/java/org/jlab/rec/cvt/fit/StraightTrackFitter.java @@ -79,7 +79,6 @@ public FitStatus fit(List X, List Y, List Z, List X, List Y, List Z, List0.1) { - fit_dca = y/Math.cos(fit_phi_at_dca); - } else { - fit_dca = -x/Math.sin(fit_phi_at_dca); - } + double fit_dca = Math.cos(fit_phi_at_dca)>0.1 ? + y/Math.cos(fit_phi_at_dca) : + -x/Math.sin(fit_phi_at_dca); //Line fit _linefit = new LineFitter();