LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
lar_content::LArConnectionPathwayHelper::SortByDistanceToPoint Class Reference

SortByDistanceToPoint class. More...

#include "LArConnectionPathwayHelper.h"

Public Member Functions

 SortByDistanceToPoint (const pandora::CartesianVector referencePoint)
 Constructor. More...
 
bool operator() (const pandora::CartesianVector &lhs, const pandora::CartesianVector &rhs)
 Sort constituent hits by their position relative to a referencePoint. More...
 
bool operator() (const pandora::CaloHit *const lhs, const pandora::CaloHit *const rhs)
 

Private Attributes

const pandora::CartesianVector m_referencePoint
 The point relative to which constituent hits are ordered. More...
 

Detailed Description

SortByDistanceToPoint class.

Definition at line 27 of file LArConnectionPathwayHelper.h.

Constructor & Destructor Documentation

lar_content::LArConnectionPathwayHelper::SortByDistanceToPoint::SortByDistanceToPoint ( const pandora::CartesianVector  referencePoint)
inline

Constructor.

Parameters
referencePointthe point relative to which constituent hits are ordered

Definition at line 35 of file LArConnectionPathwayHelper.h.

References operator()().

35  :
36  m_referencePoint(referencePoint)
37  {
38  }
const pandora::CartesianVector m_referencePoint
The point relative to which constituent hits are ordered.

Member Function Documentation

bool lar_content::LArConnectionPathwayHelper::SortByDistanceToPoint::operator() ( const pandora::CartesianVector &  lhs,
const pandora::CartesianVector &  rhs 
)

Sort constituent hits by their position relative to a referencePoint.

Parameters
lhsfirst constituent hit
rhssecond constituent hit
Returns
whether lhs hit is closer to the referencePoint than the rhs hit

Referenced by SortByDistanceToPoint().

bool lar_content::LArConnectionPathwayHelper::SortByDistanceToPoint::operator() ( const pandora::CaloHit *const  lhs,
const pandora::CaloHit *const  rhs 
)

Member Data Documentation

const pandora::CartesianVector lar_content::LArConnectionPathwayHelper::SortByDistanceToPoint::m_referencePoint
private

The point relative to which constituent hits are ordered.

Definition at line 52 of file LArConnectionPathwayHelper.h.


The documentation for this class was generated from the following file: