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

Simple fit in XY. More...

#include <SimpleHelixTrackModel.h>

Public Member Functions

 simpleFitXY (bool, double, double)
 Constructor for simple fit in XY. More...
 
void addPoint (double, double, double)
 Add point. More...
 
void addTrack (EVENT::Track const *)
 add a complete Track. 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 XY.

Fit circle (Karimaki) or straight line.

Constructor & Destructor Documentation

marlintpc::simpleFitXY::simpleFitXY ( bool  flag,
double  xr,
double  yr 
)

Constructor for simple fit in XY.

Parameters
[in]flagcurvature flag (true: circle, false: line)
[in]xrX of reference point
[in]yrY of reference point

Member Function Documentation

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

Add point.

Parameters
[in]xX of point
[in]yY of point
[in]wweight of point

Referenced by addTrack(), and marlintpc::tp_PixelSegment::tp_PixelSegment().

void marlintpc::simpleFitXY::addTrack ( EVENT::Track const *  seedTrack)

add a complete Track.

Parameters
[in]seedTrackinput seed Track

References addPoint().

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

Perform fit.

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

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

TMatrixDSym marlintpc::simpleFitXY::getCov ( ) const

Get covariance matrix.

Returns
covariance matrix

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

TVectorD marlintpc::simpleFitXY::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: