public class HelicalTrackFit extends Object
Modifier and Type | Field and Description |
---|---|
private double[] |
_chisq |
private SymmetricMatrix |
_covmatrix |
private Map<HelicalTrackHit,MultipleScatter> |
_msmap |
private int[] |
_ndf |
private double |
_nhchisq |
private double[] |
_parameters |
private Map<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 |
dcaerror |
static int |
dcaIndex
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 |
slopeerror |
static int |
slopeIndex
Index of the slope in the parameter array and covariance matrix.
|
private double |
z0error |
static int |
z0Index
Index of the z0 coordinate in the parameter array and covariance matrix.
|
Constructor and Description |
---|
HelicalTrackFit(double[] pars,
SymmetricMatrix cov,
double[] chisq,
int[] ndf,
Map<HelicalTrackHit,Double> smap,
Map<HelicalTrackHit,MultipleScatter> msmap)
Creates a new instance of HelicalTrackFit
|
Modifier and Type | Method and Description |
---|---|
double[] |
chisq()
Return the helix fit chisqs.
|
double |
chisqtot()
Return the total chisq: chisq[0] + chisq[1] + nhchisq.
|
SymmetricMatrix |
covariance()
Return the helix covariance matrix.
|
double |
cth()
Return cos(theta).
|
double |
curvature()
Return the signed helix curvature.
|
double |
dca()
Return the signed helix DCA.
|
double |
getCurveError()
Return the error for curvature, omega
|
double |
getDcaError()
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 |
getSlopeError()
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
|
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<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<HelicalTrackHit,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 |
slope()
Return the helix slope tan(lambda).
|
double |
sth()
Return sin(theta).
|
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 dcaIndex
public static int phi0Index
public static int curvatureIndex
public static int z0Index
public static int slopeIndex
private double[] _chisq
private double _nhchisq
private int[] _ndf
private double[] _parameters
private SymmetricMatrix _covmatrix
private Map<HelicalTrackHit,Double> _smap
private Map<HelicalTrackHit,MultipleScatter> _msmap
private double curveerror
private double slopeerror
private double dcaerror
private double phi0error
private double z0error
public HelicalTrackFit(double[] pars, SymmetricMatrix cov, double[] chisq, int[] ndf, Map<HelicalTrackHit,Double> smap, Map<HelicalTrackHit,MultipleScatter> msmap)
pars
- array of helix parameterscov
- covariance matrix of helix fitchisq
- chisq of the circle fit (chisq[0]) and s-z fit (chisq[1])ndf
- dof for the circle fit (ndf[0]) and s-z fit (ndf[1])smap
- map containing the x-y path lengthsmsmap
- map containing the multiple scattering uncertaintiespublic double[] parameters()
public double dca()
public double phi0()
public double curvature()
public double z0()
public double slope()
public SymmetricMatrix 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<HelicalTrackHit,Double> PathMap()
public Map<HelicalTrackHit,MultipleScatter> ScatterMap()
public double getCurveError()
public double getSlopeError()
public double getDcaError()
public double getPhi0Error()
public double getZ0Error()
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.