Structure to store the information about forward and backward walls of CDC.
More...
|
| void | setLine (const double tangent, const double offset) |
| | Set parameters of slopping line.
|
| |
| double | getLine (const double x) const |
| | Return the y value of the sloping line based on the x value.
|
| |
|
| double | m_tangent {} |
| | tangent of the sloping line
|
| |
| double | m_offset {} |
| | offset of the sloping line [cm]
|
| |
Structure to store the information about forward and backward walls of CDC.
CDC has a shape of two trapezoids, so the geometry of forward and backward walls is two sloping lines. This structure handles one sloping line.
Definition at line 133 of file KinkFinderModule.h.
◆ getLine()
| double getLine |
( |
const double | x | ) |
const |
|
inline |
Return the y value of the sloping line based on the x value.
It is used in ifInCDC function to check if the track point is inside CDC.
- Parameters
-
- Returns
- y value of the sloping line
Definition at line 152 of file KinkFinderModule.h.
153 {
154 return m_tangent * x + m_offset;
155 }
◆ setLine()
| void setLine |
( |
const double | tangent, |
|
|
const double | offset ) |
|
inline |
Set parameters of slopping line.
- Parameters
-
| tangent | tangent of the sloping line |
| offset | offset of the sloping line [cm] |
Definition at line 140 of file KinkFinderModule.h.
141 {
142 m_tangent = tangent;
143 m_offset = offset;
144 }
◆ m_offset
◆ m_tangent
The documentation for this struct was generated from the following file: