MyMarlinTPC  170316
Public Member Functions | Private Attributes | 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. More...
 
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...
 

Private Attributes

const int _npar
 number of track parameters (2) More...
 
int _numPoints
 number of points (hits) used More...
 
double _sx
 weighted sum(s) More...
 
double _sy
 weighted sum(z) More...
 
double _sxx
 weighted sum(s*s) More...
 
double _sxy
 weighted sum(s*z) More...
 
double _syy
 weighted sum(z*z) More...
 
double _sw
 sum of weights More...
 
TVectorD _parameters
 parameter vector More...
 
TMatrixDSym _covariance
 covariance matrix More...
 

Detailed Description

Simple fit in ZS.

Fit straight line.

Definition at line 170 of file SimpleHelixTrackModel.h.

Constructor & Destructor Documentation

◆ simpleFitZS()

marlintpc::simpleFitZS::simpleFitZS ( )

Constructor for simple fit in ZS.

Definition at line 842 of file SimpleHelixTrackModel.cc.

References _numPoints, _sw, _sx, _sxx, _sxy, _sy, and _syy.

Member Function Documentation

◆ addPoint()

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

Definition at line 854 of file SimpleHelixTrackModel.cc.

References _numPoints, _sw, _sx, _sxx, _sxy, _sy, and _syy.

Referenced by marlintpc::pb_Seed::_fitSeed(), marlintpc::rb_Segment::fitSegment(), and marlintpc::tp_PixelSegment::tp_PixelSegment().

◆ fit()

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)

Definition at line 871 of file SimpleHelixTrackModel.cc.

References _covariance, _npar, _numPoints, _parameters, _sw, _sx, _sxx, _sxy, _sy, and _syy.

Referenced by marlintpc::pb_Seed::_fitSeed(), marlintpc::rb_Segment::fitSegment(), and marlintpc::tp_PixelSegment::tp_PixelSegment().

◆ getCov()

TMatrixDSym marlintpc::simpleFitZS::getCov ( ) const

Get covariance matrix.

Returns
covariance matrix

Definition at line 905 of file SimpleHelixTrackModel.cc.

References _covariance.

Referenced by marlintpc::rb_Segment::fitSegment(), and marlintpc::tp_PixelSegment::tp_PixelSegment().

◆ getPar()

TVectorD marlintpc::simpleFitZS::getPar ( ) const

Get parameters vector.

Returns
parameter vector

Definition at line 897 of file SimpleHelixTrackModel.cc.

References _parameters.

Referenced by marlintpc::pb_Seed::_fitSeed(), marlintpc::rb_Segment::fitSegment(), and marlintpc::tp_PixelSegment::tp_PixelSegment().

Member Data Documentation

◆ _covariance

TMatrixDSym marlintpc::simpleFitZS::_covariance
private

covariance matrix

Definition at line 198 of file SimpleHelixTrackModel.h.

Referenced by fit(), and getCov().

◆ _npar

const int marlintpc::simpleFitZS::_npar
private

number of track parameters (2)

Definition at line 180 of file SimpleHelixTrackModel.h.

Referenced by fit().

◆ _numPoints

int marlintpc::simpleFitZS::_numPoints
private

number of points (hits) used

Definition at line 182 of file SimpleHelixTrackModel.h.

Referenced by addPoint(), fit(), and simpleFitZS().

◆ _parameters

TVectorD marlintpc::simpleFitZS::_parameters
private

parameter vector

Definition at line 196 of file SimpleHelixTrackModel.h.

Referenced by fit(), and getPar().

◆ _sw

double marlintpc::simpleFitZS::_sw
private

sum of weights

Definition at line 194 of file SimpleHelixTrackModel.h.

Referenced by addPoint(), fit(), and simpleFitZS().

◆ _sx

double marlintpc::simpleFitZS::_sx
private

weighted sum(s)

Definition at line 184 of file SimpleHelixTrackModel.h.

Referenced by addPoint(), fit(), and simpleFitZS().

◆ _sxx

double marlintpc::simpleFitZS::_sxx
private

weighted sum(s*s)

Definition at line 188 of file SimpleHelixTrackModel.h.

Referenced by addPoint(), fit(), and simpleFitZS().

◆ _sxy

double marlintpc::simpleFitZS::_sxy
private

weighted sum(s*z)

Definition at line 190 of file SimpleHelixTrackModel.h.

Referenced by addPoint(), fit(), and simpleFitZS().

◆ _sy

double marlintpc::simpleFitZS::_sy
private

weighted sum(z)

Definition at line 186 of file SimpleHelixTrackModel.h.

Referenced by addPoint(), fit(), and simpleFitZS().

◆ _syy

double marlintpc::simpleFitZS::_syy
private

weighted sum(z*z)

Definition at line 192 of file SimpleHelixTrackModel.h.

Referenced by addPoint(), fit(), and simpleFitZS().


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