public class GTrackState extends Object implements Comparable
The fit at any surface should be an optimal one accounting for all the preceeding and following clusters. It is *not* a partial fit including only the preceeding clusters.
In principle one can obtain an optimal fit for any point outside the first or last cluster and immediately between any intermediate adjacent clusters for which smoothing is defined.
Modifier and Type | Field and Description |
---|---|
private double |
_chi_square |
private Cluster |
_clu |
private FitStatus |
_fit_status |
private Miss |
_miss |
private double |
_s |
private ETrack |
_tre |
Constructor and Description |
---|
GTrackState()
Construct a default instance.
|
GTrackState(double s)
Construct an instance from the path distance only.
|
GTrackState(double s,
ETrack tre,
FitStatus fit_status,
double chi_square)
Construct an instance from the path distance and the track fit.
|
GTrackState(double s,
ETrack tre,
FitStatus fit_status,
double chi_square,
Cluster clu)
Construct an instance from the path distance, the track fit and a cluster.
|
GTrackState(double s,
ETrack tre,
FitStatus fit_status,
double chi_square,
Miss miss)
Construct an instance from the path distance, the track fit and a miss.
|
GTrackState(GTrackState gts)
Construct an instance replicating the GTrackState (copy constructor).
|
Modifier and Type | Method and Description |
---|---|
double |
chiSquared()
Return the chi-square of the fit.
|
Cluster |
cluster()
Return the cluster
|
int |
compareTo(Object o)
Comparable interface
|
void |
dropFit()
Drop the fit from the state.
|
boolean |
equals(GTrackState gts)
Test equality.
|
FitStatus |
fitStatus()
Return the fit status.
|
boolean |
hasValidFit()
Return whether the state is valid and has a valid fit.
|
boolean |
isValid()
Return if this state is valid.
|
Miss |
miss()
Return the miss.
|
boolean |
notEquals(GTrackState gts)
Test nequality.
|
double |
s()
Return the path distance to this state.
|
String |
toString()
output stream
|
ETrack |
track()
Return the track t this state.
|
private double _s
private ETrack _tre
private FitStatus _fit_status
private double _chi_square
private Cluster _clu
private Miss _miss
public GTrackState()
public GTrackState(double s)
s
- The path distance to this state.public GTrackState(double s, ETrack tre, FitStatus fit_status, double chi_square)
s
- The path distance to this state.tre
- The fit ETRack.fit_status
- The fit status.chi_square
- The chi-square of the fit.public GTrackState(double s, ETrack tre, FitStatus fit_status, double chi_square, Cluster clu)
s
- The path distance to this state.tre
- The fit ETRack.fit_status
- The fit status.chi_square
- The chi-square of the fit.clu
- The cluster associated with this track state.public GTrackState(double s, ETrack tre, FitStatus fit_status, double chi_square, Miss miss)
s
- The path distance to this state.tre
- The fit ETRack.fit_status
- The fit status.chi_square
- The chi-square of the fit.miss
- The miss associated with this track state.public GTrackState(GTrackState gts)
gts
- The GTrackState to replicate.public void dropFit()
public boolean isValid()
public boolean hasValidFit()
public double s()
public ETrack track()
public FitStatus fitStatus()
public double chiSquared()
public Cluster cluster()
public Miss miss()
public boolean equals(GTrackState gts)
gts
- The GTrackState to test.public boolean notEquals(GTrackState gts)
gts
- The GTrackState to test.public String toString()
public int compareTo(Object o)
compareTo
in interface Comparable
o
- Object to compare to.Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.