LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
SortByDistanceToPoint class. More...
#include "LArHitWidthHelper.h"
Public Member Functions | |
SortByDistanceToPoint (const pandora::CartesianVector referencePoint) | |
Constructor. More... | |
bool | operator() (const ConstituentHit &lhs, const ConstituentHit &rhs) |
Sort constituent hits by their position relative to a referencePoint. More... | |
Private Attributes | |
const pandora::CartesianVector | m_referencePoint |
The point relative to which constituent hits are ordered. More... | |
SortByDistanceToPoint class.
Definition at line 55 of file LArHitWidthHelper.h.
|
inline |
Constructor.
referencePoint | the point relative to which constituent hits are ordered |
Definition at line 63 of file LArHitWidthHelper.h.
References operator()().
bool lar_content::LArHitWidthHelper::ConstituentHit::SortByDistanceToPoint::operator() | ( | const ConstituentHit & | lhs, |
const ConstituentHit & | rhs | ||
) |
Sort constituent hits by their position relative to a referencePoint.
lhs | first constituent hit |
rhs | second constituent hit |
Definition at line 25 of file LArHitWidthHelper.cc.
References lar_content::LArHitWidthHelper::ClusterParameters::ClusterParameters(), lar_content::LArHitWidthHelper::GetConstituentHits(), lar_content::LArHitWidthHelper::GetExtremalCoordinatesHigherX(), lar_content::LArHitWidthHelper::GetExtremalCoordinatesLowerX(), lar_content::LArHitWidthHelper::ConstituentHit::GetPositionVector(), and lar_content::LArHitWidthHelper::GetTotalClusterWeight().
Referenced by SortByDistanceToPoint().
|
private |
The point relative to which constituent hits are ordered.
Definition at line 79 of file LArHitWidthHelper.h.