|
template<typename T > |
int | operator() (const T &e) |
|
template<typename T > |
void | update_track (int Track_ID, const T &e) |
|
Definition at line 58 of file klm_trig_linear_fit.cc.
◆ operator()()
int operator() |
( |
const T & |
e | ) |
|
|
inline |
Definition at line 70 of file klm_trig_linear_fit.cc.
71 {
72 for (int j = 0; j < m_number_of_tracks; ++j) {
73
74 auto& track = m_storage[get_index(e, j)];
75 if (
76 std::abs(track.last_y - e.y_pos) < y_cutoff
77 ||
78 track.nDigits == 0
79 ) {
80 update_track(j, e);
81 return j;
82 }
83 }
84
85 const auto last_track = m_number_of_tracks - 1;
86 update_track(last_track, e);
87 return last_track;
88
89 }
◆ update_track()
void update_track |
( |
int |
Track_ID, |
|
|
const T & |
e |
|
) |
| |
|
inline |
Definition at line 92 of file klm_trig_linear_fit.cc.
93 {
94 auto& track = m_storage[get_index(e, Track_ID)];
95 track.last_y = e.y_pos;
96 track.last_x = e.x_pos;
97 track.nDigits++;
98 }
◆ m_number_of_tracks
int m_number_of_tracks = 4 |
◆ m_storage
◆ y_cutoff
The documentation for this struct was generated from the following file: