Public Member Functions | Private Attributes | List of all members
tss::bDistToPointLess Struct Reference

#include <SimpleClustering.h>

Inheritance diagram for tss::bDistToPointLess:

Public Member Functions

 bDistToPointLess (const TVector2 &point)
 
bool operator() (const tss::Hit2D *h1, const tss::Hit2D *h2)
 

Private Attributes

TVector2 p0
 

Detailed Description

Definition at line 23 of file SimpleClustering.h.

Constructor & Destructor Documentation

tss::bDistToPointLess::bDistToPointLess ( const TVector2 &  point)
inline

Definition at line 26 of file SimpleClustering.h.

26 : p0(point) { }

Member Function Documentation

bool tss::bDistToPointLess::operator() ( const tss::Hit2D h1,
const tss::Hit2D h2 
)
inline

Definition at line 28 of file SimpleClustering.h.

29  {
30  if (h1 && h2) return pma::Dist2(h1->Point2D(), p0) < pma::Dist2(h2->Point2D(), p0);
31  else return false;
32  }
TVector2 const & Point2D() const
Definition: TssHit2D.h:36
double Dist2(const TVector2 &v1, const TVector2 &v2)
Definition: Utilities.cxx:37

Member Data Documentation

TVector2 tss::bDistToPointLess::p0
private

Definition at line 34 of file SimpleClustering.h.


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