TimingFitAlg.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // \file TimingFitAlg.h
3 // \brief Algorithm to determine the direction of tracks using timing
4 // \author Christopher Backhouse - bckhouse@caltech.edu
5 ////////////////////////////////////////////////////////////////////////
6 
7 #ifndef TF_TIMINGFITALG_H
8 #define TF_TIMINGFITALG_H
9 
10 #include <vector>
11 
13 
14 namespace rb{class Track;}
15 
16 namespace tf
17 {
18  /// Represent one distance/time pair on a track
19  struct Pt
20  {
21  Pt(double _L, double _t, double _e) : L(_L), t(_t), err(_e) {}
22  double L, t, err;
23  };
24 
25  /// Algorithm to determine the direction of tracks using timing
27  {
28  public:
29  TimingFitAlg();
30 
31  TimingFitResult HoughFit(const rb::Track* track) const;
32 
33  /// Helper for \ref HoughFit. May be useful for more advanced users
34  TimingFitResult HoughFitPts(const std::vector<Pt>& pts) const;
35  };
36 }
37 
38 #endif
Represent one distance/time pair on a track.
Definition: TimingFitAlg.h:19
Store results of TimingFitAlg.
Definition: event.h:19
Algorithm to determine the direction of tracks using timing.
Definition: TimingFitAlg.h:26
A rb::Prong with full reconstructed trajectory.
Definition: Track.h:20
Timing fit.
static constexpr double L
Perform a "2 point" Hough transform on a collection of hits.
double t
Definition: TimingFitAlg.h:22
Pt(double _L, double _t, double _e)
Definition: TimingFitAlg.h:21