Belle II Software development
|
A collection of classes that are useful for making a simple path length correction to the dE/dx measurement for each hit in a CDC cell. More...
#include <LineHelper.h>
Public Member Functions | |
DedxPoint () | |
The default constructor sets the coordinates to zero. | |
DedxPoint (double x, double y) | |
Construct a point DedxPoint object from x and y coordinates. | |
double | getX () const |
Helper function to return the x-coordinates of a DedxPoint. | |
double | getY () const |
Helper function to return the y-coordinates of a DedxPoint. | |
void | setPoint (double x, double y) |
Set the x and y coordinates of a DedxPoint. | |
double | length (const DedxPoint &p) |
Calculate the distance between this and another point. | |
bool | isValid () const |
Check whether this point lies within the endpoints of a line. | |
void | setInvalid () |
Mark this point as invalid (exists outside a DedxDriftCell) | |
Private Attributes | |
double | m_x |
the x-coordinate of the DedxPoint | |
double | m_y |
the y-coordinate of the DedxPoint | |
bool | m_valid |
used to check if the point lies inside a boundary | |
A collection of classes that are useful for making a simple path length correction to the dE/dx measurement for each hit in a CDC cell.
A class to hold the coordinates of a point
This is useful for implementation of the DedxLine class below, which is helpful for track path length corrections.
Definition at line 29 of file LineHelper.h.
|
inline |
The default constructor sets the coordinates to zero.
Definition at line 34 of file LineHelper.h.
|
inline |
|
inline |
Helper function to return the x-coordinates of a DedxPoint.
Definition at line 40 of file LineHelper.h.
|
inline |
Helper function to return the y-coordinates of a DedxPoint.
Definition at line 43 of file LineHelper.h.
|
inline |
Check whether this point lies within the endpoints of a line.
Definition at line 65 of file LineHelper.h.
|
inline |
Calculate the distance between this and another point.
Definition at line 53 of file LineHelper.h.
|
inline |
Mark this point as invalid (exists outside a DedxDriftCell)
Definition at line 68 of file LineHelper.h.
|
inline |
Set the x and y coordinates of a DedxPoint.
Definition at line 46 of file LineHelper.h.
|
private |
used to check if the point lies inside a boundary
Definition at line 74 of file LineHelper.h.
|
private |
the x-coordinate of the DedxPoint
Definition at line 72 of file LineHelper.h.
|
private |
the y-coordinate of the DedxPoint
Definition at line 73 of file LineHelper.h.