18 #include "TLinearFitter.h"
32 class Track :
public vector<StHit*> {
41 bool operator()(
const StHit* hit1,
const StHit* hit2)
const
43 return hit1->position().z() < hit2->position().z();
147 static TLinearFitter mXfitter;
148 static TLinearFitter mYfitter;
153 int mNumberFreeParameters;
169 inline int Track::ndf()
const {
return mNumberFreeParameters; }
179 ostream& operator<<(ostream&,
const Track&);
void merge(Track *track)
Merge this track with that track.
double y0() const
y-intercept at z = 0
bool fit()
Perform linear fits in zx- and zy-plane.
double x0error() const
Error on x-intercept.
double chi2zx()
chi square of linear fit in zx-plane
double x0() const
x-intercept at z = 0
bool ok() const
Good track?
double dydz() const
dy/dz slope
double y0error() const
Error on y-intercept.
double chi2zy()
chi square of linear fit in zy-plane
bool accept(StHit *hit) const
Is hit close enough to track?
StHit * firstHit() const
First hit.
StHit * lastHit() const
Last hit.
double dxdz() const
dx/dz slope
double dxdzError() const
Error on dx/dz slope.
double dydzError() const
Error on dy/dz slope.
int ndf() const
Number of degrees of freedom.
double length() const
Track length.