Belle II Software
release-08-01-10
|
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.