public class HTrack extends Object
Hits are ordered as they were fit.
The access to the list of hits is minimal. Users are expected to construct a new object to do more than update the fit or add a hit to the end of the list.
The method is_fit returns true if the track has been fit with all its hits. This state is set by calling set_fit and is unset when hits are added. No hits are required to be on the track (so one can store a fit without any hits).
Modifier and Type | Field and Description |
---|---|
protected double |
_chisq |
protected List |
_hits |
private int |
_nfit |
protected ETrack |
_tre |
Constructor and Description |
---|
HTrack()
Construct an instance that contains no hits and whose fit is invalid.
|
HTrack(ETrack tre)
Construct and instance from a track and its error.
|
HTrack(HTrack ht)
Construct an instance which replicates its argument (Copy Constructor).
|
Modifier and Type | Method and Description |
---|---|
void |
addHit(Hit hit)
Add a hit to the back of the list.
|
double |
chisquared()
Return the chi-square of the track fit.
|
void |
dropHit()
Drop the last hit on the list.
|
void |
dropHits()
Drop all hits.
|
boolean |
equals(HTrack ht)
Test equality of this object against another HTrack.
|
List |
hits()
Return the list of hits.
|
boolean |
isFit()
Return the fit status: true if track has one or more hits
and has been fit with all of its hits.
|
TrackMcHitInfo |
mcInfo()
Return the MC track information for hits on this track.
|
ETrack |
newTrack()
Return a copy of the fit track parameters and errors.
|
boolean |
notEquals(HTrack ht)
Test inequality of this object against another HTrack.
|
int |
numberOfMeasurements()
Return the number of measurements on this track.
|
PropStat |
propagate(Propagator prop,
Surface srf)
Propagate the fit track.
|
PropStat |
propagate(Propagator prop,
Surface srf,
PropDir dir)
Propagate the fit track in a specified direction.
|
void |
setFit(ETrack tre,
double chisq)
Set the fit parameters for the current list of hits.
|
String |
toString()
output stream
|
ETrack |
track()
Fetch a handle to the fit track parameters and errors.
|
void |
unsetFit()
Unset the fit.
|
void |
unsetFit(ETrack tre)
Unset the fit and reset the starting track.
|
private int _nfit
protected List _hits
protected ETrack _tre
protected double _chisq
public HTrack()
public HTrack(ETrack tre)
tre
- The ETrack from which to construct this instance.public HTrack(HTrack ht)
ht
- The HTrack to replicate.public void addHit(Hit hit)
hit
- The Hit to add to this track.public void dropHit()
public void dropHits()
public void setFit(ETrack tre, double chisq)
tre
- The ETrack which represents the fit parameters and errors.chisq
- The chi-square of the fit.public void unsetFit()
public void unsetFit(ETrack tre)
tre
- The ETrack which represents the track parameters and errors.public List hits()
public ETrack newTrack()
public ETrack track()
public double chisquared()
public int numberOfMeasurements()
public TrackMcHitInfo mcInfo()
public boolean isFit()
public PropStat propagate(Propagator prop, Surface srf)
prop
- The Propagator to use for propagation.srf
- The Surface to propagate to.public PropStat propagate(Propagator prop, Surface srf, PropDir dir)
prop
- The Propagator to use for propagation.srf
- The Surface to propagate to.dir
- The direction in which to propagate.public String toString()
public boolean equals(HTrack ht)
ht
- The HTrack against which to compare.public boolean notEquals(HTrack ht)
ht
- The HTrack against which to compare.Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.