MarlinTPC  1.2.0
Public Member Functions | List of all members
marlintpc::simpleFitZS Class Reference

Simple fit in ZS. More...

#include <SimpleHelixTrackModel.h>

Public Member Functions

 simpleFitZS ()
 Constructor for simple fit in ZS.
 
void addPoint (double, double, double)
 Add point. More...
 
int fit (double &, int &)
 Perform fit. More...
 
TVectorD getPar () const
 Get parameters vector. More...
 
TMatrixDSym getCov () const
 Get covariance matrix. More...
 

Detailed Description

Simple fit in ZS.

Fit straight line.

Member Function Documentation

void marlintpc::simpleFitZS::addPoint ( double  x,
double  y,
double  w 
)

Add point.

Parameters
[in]xarc-length S of point
[in]yZ of point
[in]wweight of point

Referenced by marlintpc::tp_PixelSegment::tp_PixelSegment().

int marlintpc::simpleFitZS::fit ( double &  Chi2,
int &  nPoints 
)

Perform fit.

Parameters
[out]Chi2chi2 of fit
[out]nPointsnumber of points
Returns
number of fit parameters (2)

Referenced by marlintpc::tp_PixelSegment::tp_PixelSegment().

TMatrixDSym marlintpc::simpleFitZS::getCov ( ) const

Get covariance matrix.

Returns
covariance matrix

Referenced by marlintpc::tp_PixelSegment::tp_PixelSegment().

TVectorD marlintpc::simpleFitZS::getPar ( ) const

Get parameters vector.

Returns
parameter vector

Referenced by marlintpc::tp_PixelSegment::tp_PixelSegment().


The documentation for this class was generated from the following files: