Package org.jlab.rec.cvt.fit
Class StraightTrackFitter
java.lang.Object
org.jlab.rec.cvt.fit.StraightTrackFitter
A fitter which does sequential fit (for r, phi coordinates) to a circle using
CircleFitter and then (for r, z coordinates) to a line using LineFitter. Uses
CircleCalculator for corroboration of the results obtained from
CircleCalculator
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Status of the HelicalTrackFit -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfit
(List<Double> X, List<Double> Y, List<Double> Z, List<Double> Rho, List<Double> errRt, List<Double> errRho, List<Double> ErrZ) double[]
getChi2()
getFit()
Return the results of the most recent helix fit.getHelix()
Return the s-z line fit for the most recent helix fit.double
getXb()
double
getYb()
void
setCovMat
(double[] chisq) void
void
setXb
(double Xb) void
setYb
(double Yb)
-
Constructor Details
-
StraightTrackFitter
public StraightTrackFitter()
-
-
Method Details
-
fit
-
getFit
Return the results of the most recent helix fit. Returns null if the fit was not successful.- Returns:
- HelicalTrackFitPars from the most recent helix fit
-
getLineFit
Return the s-z line fit for the most recent helix fit. If the line fit failed or was not performed due to not having enough 3D hits, null is returned.- Returns:
- line fit for most recent helix fit
-
getHelix
-
setHelix
-
getChi2
public double[] getChi2() -
setCovMat
public void setCovMat(double[] chisq) -
getXb
public double getXb()- Returns:
- the Xb
-
setXb
public void setXb(double Xb) - Parameters:
Xb
- the Xb to set
-
getYb
public double getYb()- Returns:
- the Yb
-
setYb
public void setYb(double Yb) - Parameters:
Yb
- the Yb to set
-