#include <RecoPixelVertexing/PixelTrackFitting/src/RZLine.h>
Public Member Functions | |
float | chi2 (float cotTheta, float intercept) const |
void | fit (float &cotTheta, float &intercept, float &covss, float &covii, float &covsi) const |
RZLine (const std::vector< float > &aR, const std::vector< float > &aZ, const std::vector< float > &aErrZ) | |
RZLine (const std::vector< GlobalPoint > &points, const std::vector< GlobalError > &errors, const std::vector< bool > isBarrel) | |
Private Attributes | |
std::vector< float > | errZ |
std::vector< float > | r |
std::vector< float > | z |
Definition at line 8 of file RZLine.h.
RZLine::RZLine | ( | const std::vector< GlobalPoint > & | points, | |
const std::vector< GlobalError > & | errors, | |||
const std::vector< bool > | isBarrel | |||
) |
RZLine::RZLine | ( | const std::vector< float > & | aR, | |
const std::vector< float > & | aZ, | |||
const std::vector< float > & | aErrZ | |||
) |
float RZLine::chi2 | ( | float | cotTheta, | |
float | intercept | |||
) | const |
Definition at line 35 of file RZLine.cc.
References errZ, r, sqr(), and z.
Referenced by PixelFitterByConformalMappingAndLine::run(), TrackFitter::run(), and PixelFitterByHelixProjections::run().
00036 { 00037 float chi2 = 0.; 00038 int r_size = r.size(); 00039 for (int i=0; i< r_size; i++) chi2 += sqr( ((z[i]-intercept) - cotTheta*r[i]) / errZ[i]); 00040 return chi2; 00041 }
void RZLine::fit | ( | float & | cotTheta, | |
float & | intercept, | |||
float & | covss, | |||
float & | covii, | |||
float & | covsi | |||
) | const |
Definition at line 29 of file RZLine.cc.
Referenced by PixelFitterByConformalMappingAndLine::run(), TrackFitter::run(), and PixelFitterByHelixProjections::run().
00031 { 00032 LinearFit().fit( r,z, r.size(), errZ, cotTheta, intercept, covss, covii, covsi); 00033 }
std::vector<float> RZLine::errZ [private] |
std::vector<float> RZLine::r [private] |
std::vector<float> RZLine::z [private] |