All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 larreco/larreco/ClusterFinder/TrackShowerSplitter/Segmentation2D/SimpleClustering.h.

Constructor & Destructor Documentation

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

Member Function Documentation

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

Definition at line 28 of file larreco/larreco/ClusterFinder/TrackShowerSplitter/Segmentation2D/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)

Member Data Documentation

TVector2 tss::bDistToPointLess::p0
private

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