Track.h
Go to the documentation of this file.
1 #ifndef DDT_SMT_TRACK_GUARD_HH
2 #define DDT_SMT_TRACK_GUARD_HH
3 
5 
6 #include <map>
7 
8 
9 namespace novaddt
10 {
11  namespace smt
12  {
13  class Track;
14  }
15 }
16 
17 
19 {
20 public:
22 
23  double time() const;
24  double distance() const;
25  double velocity() const;
26  double beta() const;
27 
28  bool slope_plane_is_valid() const;
29  double slope_cell_plane() const;
30  double slope_time_plane() const;
31 
32  bool slope_time_is_valid() const;
33  double slope_cell_time() const;
34  double slope_plane_time() const;
35 
36  bool slope_cell_is_valid() const;
37  double slope_time_cell() const;
38 
39  novaddt::DAQHit start() const;
40  novaddt::DAQHit end() const;
41 
42  unsigned max_plane() const;
43  unsigned min_plane() const;
44  int plane_difference() const;
45  unsigned max_cell() const;
46  unsigned min_cell() const;
47  int cell_difference() const;
48 
49 private:
50  double calculate_distance() const;
51  double calculate_velocity() const;
52  void calculate_slopes();
53 
58 
60 
62 };
63 
64 
65 #endif
double velocity() const
Definition: Track.cxx:92
double slope_cell_plane() const
Definition: Track.cxx:127
double time() const
Definition: Track.cxx:85
double calculate_velocity() const
Definition: Track.cxx:38
novaddt::DAQHit start_
Definition: Track.h:61
novaddt::DAQHit start() const
Definition: Track.cxx:202
double slope_plane_time_
Definition: Track.h:54
unsigned min_cell() const
Definition: Track.cxx:237
double beta_
Definition: Track.h:54
bool slope_cell_is_valid() const
Definition: Track.cxx:120
double distance() const
Definition: Track.cxx:78
double slope_time_plane() const
Definition: Track.cxx:142
void calculate_slopes()
Definition: Track.cxx:47
int cell_difference() const
Definition: Track.cxx:251
double beta() const
Definition: Track.cxx:99
double velocity_
Definition: Track.h:54
unsigned max_plane() const
Definition: Track.cxx:223
bool slope_plane_is_valid() const
Definition: Track.cxx:106
double calculate_distance() const
Definition: Track.cxx:28
novaddt::DAQHit end() const
Definition: Track.cxx:209
novaddt::DAQHit end_
Definition: Track.h:61
double slope_plane_time() const
Definition: Track.cxx:172
double slope_cell_time() const
Definition: Track.cxx:157
bool slope_time_is_valid() const
Definition: Track.cxx:113
bool slope_cell_is_valid_
Definition: Track.h:59
double slope_cell_time_
Definition: Track.h:54
unsigned min_plane() const
Definition: Track.cxx:216
bool slope_plane_is_valid_
Definition: Track.h:59
double distance_
Definition: Track.h:54
double slope_cell_plane_
Definition: Track.h:54
bool slope_time_is_valid_
Definition: Track.h:59
int plane_difference() const
Definition: Track.cxx:230
double slope_time_cell() const
Definition: Track.cxx:187
unsigned max_cell() const
Definition: Track.cxx:244
Track(novaddt::DAQHit const &start, novaddt::DAQHit const &end)
Definition: Track.cxx:8
double slope_time_cell_
Definition: Track.h:54
double slope_time_plane_
Definition: Track.h:54