public class BaseTrackState extends Object implements TrackState
Modifier and Type | Field and Description |
---|---|
private double[] |
_covMatrix |
private int |
_location |
private double[] |
_parameters |
private double[] |
_referencePoint |
static int |
COV_MATRIX_SIZE |
private double[] |
momentum |
static int |
MOMENTUM_SIZE |
static int |
PARAMETERS_SIZE |
static int |
REF_POINT_SIZE |
AtCalorimeter, AtFirstHit, AtIP, AtLastHit, AtOther, AtVertex, LastLocation
Constructor and Description |
---|
BaseTrackState() |
BaseTrackState(double[] parameters,
double bfield) |
BaseTrackState(double[] trackParameters,
double[] covarianceMatrix,
double[] position,
int location) |
BaseTrackState(double[] parameters,
double[] referencePoint,
double[] covMatrix,
int location,
double bfield) |
Modifier and Type | Method and Description |
---|---|
double[] |
computeMomentum(double bz)
Compute the momentum of this TrackState, setting the internal array containing (px,py,pz),
and return the result.
|
static double[] |
computeMomentum(TrackState ts,
double magneticField)
Compute the momentum of a TrackState, given a Bz field component.
|
(package private) static void |
copyParameters(double[] p1,
double[] p2) |
double[] |
getCovMatrix()
Covariance matrix of the track parameters.
|
double |
getD0()
Impact paramter of the track in (r-phi).
|
int |
getLocation()
The location of the track state.
|
double[] |
getMomentum() |
double |
getOmega()
Omega is the signed curvature of the track in [1/mm].
|
double |
getParameter(int param)
Get an individual track parameter.
|
double[] |
getParameters()
Get the ordered list of 5 LCIO track parameters.
|
double |
getPhi()
Phi of the track at the reference point.
|
double[] |
getReferencePoint()
Reference point of the track parameters.
|
double |
getTanLambda()
Lambda is the dip angle of the track in r-z at the reference point.
|
double |
getZ0()
Impact paramter of the track in (r-z).
|
void |
printOut(PrintStream ps) |
void |
setCovMatrix(double[] covMatrix) |
void |
setD0(double d0) |
void |
setLocation(int location) |
void |
setOmega(double d) |
void |
setParameters(double[] p,
double bfield)
Set the track parameters.
|
void |
setPhi(double phi) |
void |
setReferencePoint(double[] referencePoint) |
void |
setTanLambda(double d) |
void |
setZ0(double z0) |
String |
toString()
Convert object to a String.
|
public static final int PARAMETERS_SIZE
public static final int REF_POINT_SIZE
public static final int MOMENTUM_SIZE
public static final int COV_MATRIX_SIZE
private double[] _parameters
private double[] _referencePoint
private double[] _covMatrix
private double[] momentum
private int _location
public BaseTrackState()
public BaseTrackState(double[] trackParameters, double[] covarianceMatrix, double[] position, int location)
public BaseTrackState(double[] parameters, double bfield)
public BaseTrackState(double[] parameters, double[] referencePoint, double[] covMatrix, int location, double bfield)
public int getLocation()
TrackState
getLocation
in interface TrackState
public double[] getReferencePoint()
TrackState
getReferencePoint
in interface TrackState
public double[] getCovMatrix()
TrackState
getCovMatrix
in interface TrackState
public double getD0()
TrackState
getD0
in interface TrackState
public double getPhi()
TrackState
getPhi
in interface TrackState
getReferencePoint
public double getZ0()
TrackState
getZ0
in interface TrackState
public double getOmega()
TrackState
getOmega
in interface TrackState
public double getTanLambda()
TrackState
getTanLambda
in interface TrackState
getReferencePoint
public void setD0(double d0)
public void setPhi(double phi)
public void setZ0(double z0)
public void setOmega(double d)
public void setTanLambda(double d)
public void setLocation(int location)
public void setReferencePoint(double[] referencePoint)
public void setCovMatrix(double[] covMatrix)
public double[] getMomentum()
getMomentum
in interface TrackState
public double getParameter(int param)
TrackState
getParameter
in interface TrackState
public double[] getParameters()
TrackState
getParameters
in interface TrackState
public void setParameters(double[] p, double bfield)
p
- bfield
- static final void copyParameters(double[] p1, double[] p2)
public double[] computeMomentum(double bz)
bz
- The B-field in Z.public static final double[] computeMomentum(TrackState ts, double magneticField)
ts
- The TrackState.Bz
- The magnetic field component Bz.public void printOut(PrintStream ps)
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.