MarlinTPC  1.2.0
Classes | Static Public Member Functions | List of all members
marlintpc::LinearTrackRegression Class Reference

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

 

Detailed Description

Helper class to perform a linear regression on a track.

For straight lines the linear regression is equivalent to a $\chi^2$ minimisation of the track parameters, but much faster because it is calcualted analytically.


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