9 #ifndef DataFormats_CTPPSAlignment_LocalTrackFit 10 #define DataFormats_CTPPSAlignment_LocalTrackFit 35 LocalTrackFit(
double _z0=0.,
double _ax=0.,
double _ay=0.,
double _bx=0.,
double _by=0.,
unsigned int _ndf=0,
double _chi_sq=0.) :
36 z0(_z0), ax(_ax), ay(_ay), bx(_bx), by(_by), ndf(_ndf), chi_sq(_chi_sq) {}
39 {
return TMath::Prob(chi_sq, ndf); }
42 {
return (ndf > 0) ? chi_sq / ndf : 0.; }
double z0
the point where intercepts are measured, in mm
double ChiSqPerNdf() const
Local (linear) track description (or a fit result). Uses global reference system. ...
signed int ndf
the number of degrees of freedom
double chi_sq
the residual sum of squares
void Eval(double z, double &x, double &y)
double bx
intercepts in mm
LocalTrackFit(double _z0=0., double _ax=0., double _ay=0., double _bx=0., double _by=0., unsigned int _ndf=0, double _chi_sq=0.)