Public Member Functions | Private Attributes | List of all members
dunefd::bDistCentLess2D Class Reference

#include <IniSegAlg.h>

Inheritance diagram for dunefd::bDistCentLess2D:

Public Member Functions

 bDistCentLess2D (const TVector2 &c)
 
bool operator() (Hit2D p1, Hit2D p2)
 

Private Attributes

TVector2 center
 

Detailed Description

Definition at line 96 of file IniSegAlg.h.

Constructor & Destructor Documentation

dunefd::bDistCentLess2D::bDistCentLess2D ( const TVector2 &  c)
inline

Definition at line 100 of file IniSegAlg.h.

Member Function Documentation

bool dunefd::bDistCentLess2D::operator() ( Hit2D  p1,
Hit2D  p2 
)
inline

Definition at line 102 of file IniSegAlg.h.

103  {
104  double dist1 = pma::Dist2(p1.GetPointCm(), center);
105  double dist2 = pma::Dist2(p2.GetPointCm(), center);
106 
107  return dist1 < dist2;
108  }
double Dist2(const TVector2 &v1, const TVector2 &v2)
Definition: Utilities.cxx:37

Member Data Documentation

TVector2 dunefd::bDistCentLess2D::center
private

Definition at line 111 of file IniSegAlg.h.


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