public class BaseTrack extends Object implements Track
Modifier and Type | Class and Description |
---|---|
static class |
BaseTrack.TrackType |
Modifier and Type | Field and Description |
---|---|
protected int |
_charge |
protected double |
_chi2 |
protected SymmetricMatrix |
_covMatrix |
protected double |
_dEdx |
protected double |
_dEdxErr |
protected boolean |
_fitSuccess |
protected List<TrackerHit> |
_hits |
protected double |
_innermostHitRadius |
protected double[] |
_momentum |
protected int |
_ndf |
protected double[] |
_parameters |
protected double[] |
_refPoint |
protected boolean |
_refPointIsDCA |
protected int[] |
_subdetId |
protected List<Track> |
_tracks |
protected List<TrackState> |
_trackStates |
protected int |
_type |
static int |
D0 |
static int |
OMEGA |
static int |
PHI |
static int |
TANLAMBDA |
static int |
Z0 |
Constructor and Description |
---|
BaseTrack()
Creates a new instance of BaseTrack
|
Modifier and Type | Method and Description |
---|---|
void |
addHit(TrackerHit hit)
Add a hit to this track.
|
void |
addHits(List<TrackerHit> hits)
Add a list of hits to this track.
|
boolean |
fitSuccess()
Return whether the track was successfully fit.
|
int |
getCharge()
The charge of the particle creating this track in units of the electron charge.
|
double |
getChi2()
The track fit chi-squared.
|
double |
getdEdx()
The ionization associated with this track.
|
double |
getdEdxError()
The uncertainty on the ionization associated with this track.
|
SymmetricMatrix |
getErrorMatrix()
Return the track covariance matrix.
|
private BaseTrackState |
getFirstTrackState()
This gets the first TrackState as a BaseTrackState, so it can be modified.
|
double[] |
getMomentum()
The cartesian momentum for this track (px, py, pz)
|
int |
getNDF()
The number of degrees of freedom in the track fit.
|
double |
getPX()
The x component of the momentum of this track.
|
double |
getPY()
The y component of the momentum of this track.
|
double |
getPZ()
The z component of the momentum of this track.
|
double |
getRadiusOfInnermostHit()
The innermost radius of a hit on this track.
|
double[] |
getReferencePoint()
Return the reference point of this track.
|
double |
getReferencePointX()
Return the x position of the reference point for this track.
|
double |
getReferencePointY()
Return the y position of the reference point for this track.
|
double |
getReferencePointZ()
Return the z position of the reference point for this track.
|
int[] |
getSubdetectorHitNumbers()
The ids of the subdetectors hit by this track.
|
List<TrackerHit> |
getTrackerHits()
Return the list of tracker hits of which this track is composed.
|
double |
getTrackParameter(int i)
Return an individual track parameter
|
double[] |
getTrackParameters()
Return the track parameters.
|
List<Track> |
getTracks()
If this is a composite track, return a list of constituent tracks.
|
List<TrackState> |
getTrackStates()
Get the list of associated
TrackState objects. |
int |
getType()
Return the type of this track.
|
boolean |
isReferencePointPCA()
Is the reference point for this track the DCA? This needs clarification
|
void |
setChisq(double chisq)
Set the chi-squared for the track fit.
|
void |
setCovarianceMatrix(SymmetricMatrix cov)
Set the covariance matrix for the track parameters.
|
void |
setFitSuccess(boolean success)
If the track has been successfully set, this should be set.
|
void |
setNDF(int n)
Set the number of degrees of freedom for this track fit.
|
void |
setReferencePoint(double[] point)
Set the reference point for this track.
|
void |
setRefPointIsDCA(boolean isDCA)
Sets whether the reference point is the distance of closest approach to the origin.
|
void |
setSubdetectorHitNumbers(int[] subdetId) |
void |
setTrackParameters(double[] params,
double magneticField) |
void |
setTrackType(int type)
Set the track type.
|
String |
toString() |
protected double[] _refPoint
protected double[] _parameters
protected SymmetricMatrix _covMatrix
protected double[] _momentum
protected double _chi2
protected boolean _refPointIsDCA
protected int _charge
protected boolean _fitSuccess
protected int _ndf
protected double _dEdx
protected double _dEdxErr
protected double _innermostHitRadius
protected int _type
protected int[] _subdetId
protected List<TrackerHit> _hits
protected List<TrackState> _trackStates
public static final int D0
public static final int PHI
public static final int OMEGA
public static final int TANLAMBDA
public static final int Z0
private BaseTrackState getFirstTrackState()
public void setTrackParameters(double[] params, double magneticField)
public void setReferencePoint(double[] point)
point
- The (x,y,z) reference point for this track.public void setCovarianceMatrix(SymmetricMatrix cov)
cov
- The covariance matrix as a SymetricMatrix.public void setRefPointIsDCA(boolean isDCA)
isDCA
- true if the reference point is the dca.public void setFitSuccess(boolean success)
success
- true if the track has successfully been set.public void setChisq(double chisq)
chisq
- The value of the track fit chi-squared.public void setNDF(int n)
n
- The number of degrees of freedom for this track fit.public void setTrackType(int type)
type
- The track typepublic void addHit(TrackerHit hit)
hit
- The TrackerHit to add to this track.public void addHits(List<TrackerHit> hits)
hits
- The list of TrackerHits to add to this track.public int getCharge()
public double[] getReferencePoint()
getReferencePoint
in interface Track
public double getReferencePointX()
getReferencePointX
in interface Track
public double getReferencePointY()
getReferencePointY
in interface Track
public double getReferencePointZ()
getReferencePointZ
in interface Track
public boolean isReferencePointPCA()
isReferencePointPCA
in interface Track
public double[] getMomentum()
getMomentum
in interface Track
public double getPX()
public double getPY()
public double getPZ()
public boolean fitSuccess()
fitSuccess
in interface Track
public double getTrackParameter(int i)
getTrackParameter
in interface Track
i
- the index of the track parameter desiredTrack.Parameter
public double[] getTrackParameters()
getTrackParameters
in interface Track
Track.Parameter
public SymmetricMatrix getErrorMatrix()
getErrorMatrix
in interface Track
Track.getTrackParameter(int)
public double getChi2()
getChi2
in interface Track
Track.getNDF()
public int getNDF()
getNDF
in interface Track
Track.getChi2()
public double getdEdx()
public double getdEdxError()
getdEdxError
in interface Track
public double getRadiusOfInnermostHit()
getRadiusOfInnermostHit
in interface Track
public int[] getSubdetectorHitNumbers()
getSubdetectorHitNumbers
in interface Track
public void setSubdetectorHitNumbers(int[] subdetId)
public List<Track> getTracks()
public List<TrackerHit> getTrackerHits()
getTrackerHits
in interface Track
public int getType()
public List<TrackState> getTrackStates()
TrackState
objects.getTrackStates
in interface Track
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.