MarlinTPC  1.2.0
LinearTrackRegression.h
1 #ifndef LINEARTRACKREGRESSION_H
2 #define LINEARTRACKREGRESSION_H
3 
4 namespace EVENT
5 {
6 class Track;
7 }
8 
9 namespace marlintpc
10 {
11 
12 
21 {
22  private:
24 
25  public:
40  struct StraightLine
41  {
42  float slope1, intersept1, slope2, intersept2;
43  };
44 
49  static LinearTrackRegression::StraightLine doRegressionX(EVENT::Track const *track);
50 
55  static LinearTrackRegression::StraightLine doRegressionY(EVENT::Track const *track);
56 };
57 
58 } // namespace marlintpc
59 
60 
61 #endif // LINEARTRACKREGRESSION_H
static LinearTrackRegression::StraightLine doRegressionX(EVENT::Track const *track)
gives back parameters for x = slope1 * y + intersept1 z = slope2 * y + intersept2 ...
Definition: LinearTrackRegression.cc:14
static LinearTrackRegression::StraightLine doRegressionY(EVENT::Track const *track)
gives back parameters for y = slope1 * x + intersept1 z = slope2 * x + intersept2 ...
Definition: LinearTrackRegression.cc:94
A nested struct which is used as return value of the regression.
Definition: LinearTrackRegression.h:40
Helper class to perform a linear regression on a track.
Definition: LinearTrackRegression.h:20