public class ZSegmentFitter extends Object
Modifier and Type | Field and Description |
---|---|
private double |
_area |
private double[] |
_centroid |
private SymmetricMatrix |
_covariance |
private double |
_eps |
private List<double[]> |
_polygon |
private double[] |
_s |
private double[] |
_zmax |
private double[] |
_zmin |
Constructor and Description |
---|
ZSegmentFitter()
Create a new instance of ZSegmentFitter
|
Modifier and Type | Method and Description |
---|---|
boolean |
fit(double[] s,
double[] zmin,
double[] zmax)
Find the allowed region in z0-tan(lambda) space and determine the centroid and
covariance matrix for this region.
|
ZSegmentFit |
getFit()
Return the resutls of the fit as a ZSegmentFit object
|
private void |
IntersectLines(double s1,
double o1,
double s2,
double o2) |
private void |
OrderVertices() |
private SymmetricMatrix |
PolygonCovariance() |
private double[] |
PseudoCentroid() |
private double[] _s
private double[] _zmin
private double[] _zmax
private List<double[]> _polygon
private double _area
private double[] _centroid
private SymmetricMatrix _covariance
private double _eps
public boolean fit(double[] s, double[] zmin, double[] zmax)
s
- Array specifying the arc length in the x-y plane for each hitzmin
- Array specifying the minimum z coordinate for each hitzmax
- Array specifying the maximum z coordinate for each hitprivate void IntersectLines(double s1, double o1, double s2, double o2)
private void OrderVertices()
private double[] PseudoCentroid()
private SymmetricMatrix PolygonCovariance()
public ZSegmentFit getFit()
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.