Class HelicalTrackFitter
java.lang.Object
org.jlab.rec.cvt.fit.HelicalTrackFitter
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 enumStatus 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 xb, double yb) double[]getchisq()Return the circle fit for the most recent helix fit.getFit()Return the results of the most recent helix fit.gethelix()Return the s-z line fit for the most recent helix fit.voidsetcirclecalcpars(CircleCalcPars _circlecalcpars) voidsetcovmat(double[] chisq) voidvoidsetReferencePoint(double x, double y)
-
Constructor Details
-
HelicalTrackFitter
public HelicalTrackFitter()Creates a new instance of HelicalTrackFitter.
-
-
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
-
getCircleFit
Return the circle fit for the most recent helix fit. Returns null if the circle fit was not successful.- Returns:
- circle fit from most recent helix fit
-
getcirclecalcpars
-
setcirclecalcpars
-
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
-
setReferencePoint
public void setReferencePoint(double x, double y) -
gethelix
-
sethelix
-
getchisq
public double[] getchisq() -
setcovmat
public void setcovmat(double[] chisq)
-