public class BilliorTrack extends Object
Modifier and Type | Field and Description |
---|---|
private double[] |
_chisq |
private Matrix |
_covmatrix |
private Map<org.lcsim.fit.helicaltrack.HelicalTrackHit,org.lcsim.fit.helicaltrack.MultipleScatter> |
_msmap |
private int[] |
_ndf |
private double |
_nhchisq |
private double[] |
_parameters |
private Map<org.lcsim.fit.helicaltrack.HelicalTrackHit,Double> |
_smap |
static int |
curvatureIndex
Index of curvature element in the parameter array and covariance matrix.
|
private double |
curveerror
Doubles used for error variables
|
private double |
epserror |
static int |
epsIndex
Index of DCA element in parameter array and covariance matrix.
|
private double |
phi0error |
static int |
phi0Index
Index of phi0 element in parameter array and covariance matrix.
|
private double |
thetaerror |
static int |
thetaIndex
Index of the angle wrt the Z-axis
|
private double |
z0error |
static int |
z0Index
Index of the z0 coordinate in the parameter array and covariance matrix.
|
Constructor and Description |
---|
BilliorTrack(org.lcsim.fit.helicaltrack.HelicalTrackFit helix) |
BilliorTrack(org.lcsim.event.Track track) |
BilliorTrack(org.lcsim.event.TrackState ts,
double chisq,
int ndf) |
Modifier and Type | Method and Description |
---|---|
double[] |
chisq()
Return the helix fit chisqs.
|
double |
chisqtot()
Return the total chisq: chisq[0] + chisq[1] + nhchisq.
|
private Matrix |
convertCovarianceToBillior(SymmetricMatrix helixcov,
double[] helixpars) |
private double[] |
convertParsToBillior(double[] helixpars) |
Matrix |
covariance()
Return the helix covariance matrix.
|
double |
cth()
Return cos(theta).
|
double |
curvature()
Return the signed helix curvature.
|
double |
eps()
Return the signed helix DCA.
|
double |
getCurveError()
Return the error for curvature, omega
|
double |
getEpsError()
Return the error for distance of closest approach, dca
|
double |
getPhi0Error()
Return the error for phi0, azimuthal angle of the momentum at the DCA
ref.
|
double |
getThetaError()
Return the error for slope dz/ds, tan(lambda)
|
double |
getZ0Error()
Return the error for z0, the z position of the particle at the DCA
|
private Matrix |
MatrixTranspose(Matrix m)
Returns the transpose of the matrix (inexplicably not handled by the
matrix package for non-square matrices).
|
int[] |
ndf()
Return the degrees of freedom for the fits.
|
double |
nhchisq()
Return the non-holenomic constraint chisq.
|
double |
p(double bfield)
Return the momentum.
|
double[] |
parameters()
Return the helix parameters as an array.
|
Map<org.lcsim.fit.helicaltrack.HelicalTrackHit,Double> |
PathMap()
Return a map of x-y path lengths for the hits used in the helix fit.
|
double |
phi0()
Return the azimuthal direction at the DCA
|
double |
pT(double bfield)
Return transverse momentum pT for the helix.
|
double |
R()
Return the radius of curvature for the helix.
|
Map<org.lcsim.fit.helicaltrack.HelicalTrackHit,org.lcsim.fit.helicaltrack.MultipleScatter> |
ScatterMap()
Return a map of the MultipleScatter objects supplied for the fit.
|
void |
setnhchisq(double nhchisq)
Set the chisq for non-holonomic constraints (e.g., pT > xx).
|
double |
sth()
Return sin(theta).
|
double |
theta()
Return the helix slope tan(lambda).
|
String |
toString()
Create a string with the helix parameters.
|
double |
x0() |
double |
xc()
Return the x coordinate of the helix center/axis.
|
double |
y0() |
double |
yc()
Return the y coordinate of the helix center/axis.
|
double |
z0()
Return the z coordinate for the DCA.
|
public static int epsIndex
public static int z0Index
public static int thetaIndex
public static int phi0Index
public static int curvatureIndex
private double[] _chisq
private double _nhchisq
private int[] _ndf
private final double[] _parameters
private final Matrix _covmatrix
private Map<org.lcsim.fit.helicaltrack.HelicalTrackHit,org.lcsim.fit.helicaltrack.MultipleScatter> _msmap
private double curveerror
private double thetaerror
private double epserror
private double phi0error
private double z0error
public BilliorTrack(org.lcsim.fit.helicaltrack.HelicalTrackFit helix)
public BilliorTrack(org.lcsim.event.Track track)
public BilliorTrack(org.lcsim.event.TrackState ts, double chisq, int ndf)
private double[] convertParsToBillior(double[] helixpars)
private Matrix convertCovarianceToBillior(SymmetricMatrix helixcov, double[] helixpars)
public double[] parameters()
public double eps()
public double phi0()
public double curvature()
public double z0()
public double theta()
public Matrix covariance()
public double[] chisq()
public void setnhchisq(double nhchisq)
nhchisq
- non-holonomic constraint chisqpublic double nhchisq()
public double chisqtot()
public int[] ndf()
public double cth()
public double sth()
public double pT(double bfield)
bfield
- magnetic fieldpublic double p(double bfield)
bfield
- magnetic fieldpublic double R()
public double xc()
public double yc()
public double x0()
public double y0()
public Map<org.lcsim.fit.helicaltrack.HelicalTrackHit,Double> PathMap()
public Map<org.lcsim.fit.helicaltrack.HelicalTrackHit,org.lcsim.fit.helicaltrack.MultipleScatter> ScatterMap()
public double getCurveError()
public double getThetaError()
public double getEpsError()
public double getPhi0Error()
public double getZ0Error()
private Matrix MatrixTranspose(Matrix m)
m
- matrix to be transposedCopyright © 2019. All rights reserved.