MarlinTPC
1.2.0
|
Helper class to perform a linear regression on a track. More...
#include <LinearTrackRegression.h>
Classes | |
struct | StraightLine |
A nested struct which is used as return value of the regression. More... | |
Static Public Member Functions | |
static LinearTrackRegression::StraightLine | doRegressionX (EVENT::Track const *track) |
gives back parameters for x = slope1 * y + intersept1 z = slope2 * y + intersept2 | |
static LinearTrackRegression::StraightLine | doRegressionY (EVENT::Track const *track) |
gives back parameters for y = slope1 * x + intersept1 z = slope2 * x + intersept2 | |
Helper class to perform a linear regression on a track.
For straight lines the linear regression is equivalent to a minimisation of the track parameters, but much faster because it is calcualted analytically.