CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
LocalTrackFit Struct Reference

Local (linear) track description (or a fit result). Uses global reference system. More...

#include <LocalTrackFit.h>

Public Member Functions

double ChiSqPerNdf () const
 
void Eval (double z, double &x, double &y)
 
 LocalTrackFit (double _z0=0., double _ax=0., double _ay=0., double _bx=0., double _by=0., unsigned int _ndf=0, double _chi_sq=0.)
 
double PValue () const
 

Public Attributes

double ax
 slopes in rad More...
 
double ay
 
double bx
 intercepts in mm More...
 
double by
 
double chi_sq
 the residual sum of squares More...
 
signed int ndf
 the number of degrees of freedom More...
 
double z0
 the point where intercepts are measured, in mm More...
 

Detailed Description

Local (linear) track description (or a fit result). Uses global reference system.

Definition at line 18 of file LocalTrackFit.h.

Constructor & Destructor Documentation

LocalTrackFit::LocalTrackFit ( double  _z0 = 0.,
double  _ax = 0.,
double  _ay = 0.,
double  _bx = 0.,
double  _by = 0.,
unsigned int  _ndf = 0,
double  _chi_sq = 0. 
)
inline

Definition at line 35 of file LocalTrackFit.h.

35  :
36  z0(_z0), ax(_ax), ay(_ay), bx(_bx), by(_by), ndf(_ndf), chi_sq(_chi_sq) {}
double z0
the point where intercepts are measured, in mm
Definition: LocalTrackFit.h:21
signed int ndf
the number of degrees of freedom
Definition: LocalTrackFit.h:30
double chi_sq
the residual sum of squares
Definition: LocalTrackFit.h:33
double bx
intercepts in mm
Definition: LocalTrackFit.h:27
double ax
slopes in rad
Definition: LocalTrackFit.h:24

Member Function Documentation

double LocalTrackFit::ChiSqPerNdf ( ) const
inline

Definition at line 41 of file LocalTrackFit.h.

References chi_sq, and ndf.

42  { return (ndf > 0) ? chi_sq / ndf : 0.; }
signed int ndf
the number of degrees of freedom
Definition: LocalTrackFit.h:30
double chi_sq
the residual sum of squares
Definition: LocalTrackFit.h:33
void LocalTrackFit::Eval ( double  z,
double &  x,
double &  y 
)
inline

Definition at line 44 of file LocalTrackFit.h.

References ax, ay, bx, by, and z0.

45  {
46  double ze = z - z0;
47  x = ax*ze + bx;
48  y = ay*ze + by;
49  }
double z0
the point where intercepts are measured, in mm
Definition: LocalTrackFit.h:21
double bx
intercepts in mm
Definition: LocalTrackFit.h:27
double ax
slopes in rad
Definition: LocalTrackFit.h:24
double LocalTrackFit::PValue ( ) const
inline

Definition at line 38 of file LocalTrackFit.h.

References chi_sq, and ndf.

39  { return TMath::Prob(chi_sq, ndf); }
signed int ndf
the number of degrees of freedom
Definition: LocalTrackFit.h:30
double chi_sq
the residual sum of squares
Definition: LocalTrackFit.h:33

Member Data Documentation

double LocalTrackFit::ax

slopes in rad

Definition at line 24 of file LocalTrackFit.h.

Referenced by svgfig.Ellipse::__repr__(), Eval(), and svgfig.Ellipse::Path().

double LocalTrackFit::ay

Definition at line 24 of file LocalTrackFit.h.

Referenced by svgfig.Ellipse::__repr__(), Eval(), and svgfig.Ellipse::Path().

double LocalTrackFit::bx

intercepts in mm

Definition at line 27 of file LocalTrackFit.h.

Referenced by Eval().

double LocalTrackFit::by

Definition at line 27 of file LocalTrackFit.h.

Referenced by Eval().

double LocalTrackFit::chi_sq

the residual sum of squares

Definition at line 33 of file LocalTrackFit.h.

Referenced by ChiSqPerNdf(), and PValue().

signed int LocalTrackFit::ndf

the number of degrees of freedom

Definition at line 30 of file LocalTrackFit.h.

Referenced by ChiSqPerNdf(), and PValue().

double LocalTrackFit::z0

the point where intercepts are measured, in mm

Definition at line 21 of file LocalTrackFit.h.

Referenced by Eval().