public class TwoPointCircleFitter extends Object
Modifier and Type | Field and Description |
---|---|
private List<TwoPointCircleFit> |
_circlefits |
private boolean |
_debug |
private static double |
_eps |
private TwoPointLineFit |
_linefit |
private double |
_rmin |
private static double |
twopi |
Constructor and Description |
---|
TwoPointCircleFitter()
Constructor with no minimum radius.
|
TwoPointCircleFitter(double rmin)
Constructor specifying a minimum radius.
|
Modifier and Type | Method and Description |
---|---|
boolean |
FitCircle(double x1,
double y1,
double x2,
double y2,
double dmax)
Fit a circle given coordinates for two points and the impact parameter.
|
boolean |
FitCircle(TrackerHit hit1,
TrackerHit hit2,
double dmax)
Fit a circle given two TrackerHits and the impact parameter.
|
List<TwoPointCircleFit> |
getCircleFits()
Get the list of TwoPointCircleFits that are found.
|
TwoPointLineFit |
getLineFit()
Get the TwoPointLineFit if the two hits are consistent with a straight-line
track that passes within the circle defined by the impact parameter cut.
|
void |
setDebug(boolean debug)
Turn on/off the debugging checks.
|
void |
setRMin(double rmin)
Set the minimum circle radius.
|
private double _rmin
private List<TwoPointCircleFit> _circlefits
private TwoPointLineFit _linefit
private boolean _debug
private static double _eps
private static double twopi
public TwoPointCircleFitter(double rmin)
rmin
- minimum circle radiuspublic TwoPointCircleFitter()
public boolean FitCircle(TrackerHit hit1, TrackerHit hit2, double dmax)
hit1
- hit #1hit2
- hit #2dmax
- impact parameterpublic boolean FitCircle(double x1, double y1, double x2, double y2, double dmax)
x1
- x coordinate of first pointy1
- y coordinate of first pointx2
- x coordinate of second pointy2
- y coordinate of second pointdmax
- impact parameterpublic List<TwoPointCircleFit> getCircleFits()
public TwoPointLineFit getLineFit()
public void setRMin(double rmin)
rmin
- minimum radiuspublic void setDebug(boolean debug)
debug
- state of debug flagCopyright © 2016 Linear Collider Detector (LCD). All rights reserved.