MyMarlinTPC
170316
|
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... | |
marlintpc::simpleFitZS::simpleFitZS | ( | ) |
Constructor for simple fit in ZS.
Definition at line 842 of file SimpleHelixTrackModel.cc.
void marlintpc::simpleFitZS::addPoint | ( | double | x, |
double | y, | ||
double | w | ||
) |
Add point.
[in] | x | arc-length S of point |
[in] | y | Z of point |
[in] | w | weight 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().
int marlintpc::simpleFitZS::fit | ( | double & | Chi2, |
int & | nPoints | ||
) |
Perform fit.
[out] | Chi2 | chi2 of fit |
[out] | nPoints | number of points |
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().
TMatrixDSym marlintpc::simpleFitZS::getCov | ( | ) | const |
Get covariance matrix.
Definition at line 905 of file SimpleHelixTrackModel.cc.
References _covariance.
Referenced by marlintpc::rb_Segment::fitSegment(), and marlintpc::tp_PixelSegment::tp_PixelSegment().
TVectorD marlintpc::simpleFitZS::getPar | ( | ) | const |
Get parameters 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().
|
private |
covariance matrix
Definition at line 198 of file SimpleHelixTrackModel.h.
|
private |
number of track parameters (2)
Definition at line 180 of file SimpleHelixTrackModel.h.
Referenced by fit().
|
private |
number of points (hits) used
Definition at line 182 of file SimpleHelixTrackModel.h.
Referenced by addPoint(), fit(), and simpleFitZS().
|
private |
parameter vector
Definition at line 196 of file SimpleHelixTrackModel.h.
|
private |
sum of weights
Definition at line 194 of file SimpleHelixTrackModel.h.
Referenced by addPoint(), fit(), and simpleFitZS().
|
private |
weighted sum(s)
Definition at line 184 of file SimpleHelixTrackModel.h.
Referenced by addPoint(), fit(), and simpleFitZS().
|
private |
weighted sum(s*s)
Definition at line 188 of file SimpleHelixTrackModel.h.
Referenced by addPoint(), fit(), and simpleFitZS().
|
private |
weighted sum(s*z)
Definition at line 190 of file SimpleHelixTrackModel.h.
Referenced by addPoint(), fit(), and simpleFitZS().
|
private |
weighted sum(z)
Definition at line 186 of file SimpleHelixTrackModel.h.
Referenced by addPoint(), fit(), and simpleFitZS().
|
private |
weighted sum(z*z)
Definition at line 192 of file SimpleHelixTrackModel.h.
Referenced by addPoint(), fit(), and simpleFitZS().