All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
pma::bDistCenterLess2D Class Reference

#include <Utilities.h>

Inheritance diagram for pma::bDistCenterLess2D:

Public Member Functions

 bDistCenterLess2D (const TVector2 &c)
 
bool operator() (TVector2 p1, TVector2 p2)
 

Private Attributes

TVector2 center
 

Detailed Description

Definition at line 132 of file larreco/larreco/RecoAlg/PMAlg/Utilities.h.

Constructor & Destructor Documentation

pma::bDistCenterLess2D::bDistCenterLess2D ( const TVector2 &  c)
inline

Member Function Documentation

bool pma::bDistCenterLess2D::operator() ( TVector2  p1,
TVector2  p2 
)
inline

Definition at line 137 of file larreco/larreco/RecoAlg/PMAlg/Utilities.h.

138  {
139  double b1 = pma::Dist2(p1, center);
140  double b2 = pma::Dist2(p2, center);
141  return b1 < b2;
142  }
double Dist2(const TVector2 &v1, const TVector2 &v2)
physics associatedGroupsWithLeft p1

Member Data Documentation

TVector2 pma::bDistCenterLess2D::center
private

Definition at line 145 of file larreco/larreco/RecoAlg/PMAlg/Utilities.h.


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