SortByDistanceAlongLine class. More...
#include <TrackRefinementBaseAlgorithm.h>
Public Member Functions | |
SortByDistanceAlongLine (const pandora::CartesianVector &startPoint, const pandora::CartesianVector &lineDirection, const bool hitWidthMode) | |
Constructor. More... | |
bool | operator() (const pandora::CaloHit *const pLhs, const pandora::CaloHit *const pRhs) const |
Sort hits by their projected distance along a line from a start point. More... | |
Private Attributes | |
pandora::CartesianVector | m_startPoint |
The line start point. More... | |
pandora::CartesianVector | m_lineDirection |
The line end point. More... | |
bool | m_hitWidthMode |
Wether to consider hit widths or not. More... | |
SortByDistanceAlongLine class.
Definition at line 36 of file TrackRefinementBaseAlgorithm.h.
|
inline |
Constructor.
startPoint | the line start point |
lineDirection | the line direction unit vector |
hitWidthMode | whether to consider hit widths or not |
Definition at line 323 of file TrackRefinementBaseAlgorithm.h.
bool lar_content::TrackRefinementBaseAlgorithm::SortByDistanceAlongLine::operator() | ( | const pandora::CaloHit *const | pLhs, |
const pandora::CaloHit *const | pRhs | ||
) | const |
Sort hits by their projected distance along a line from a start point.
pLhs | the address of the first hit |
pRhs | the address of the second hit |
Definition at line 871 of file TrackRefinementBaseAlgorithm.cc.
|
private |
Wether to consider hit widths or not.
Definition at line 61 of file TrackRefinementBaseAlgorithm.h.
|
private |
The line end point.
Definition at line 60 of file TrackRefinementBaseAlgorithm.h.
|
private |
The line start point.
Definition at line 59 of file TrackRefinementBaseAlgorithm.h.