LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
pma::bDistCenterLess3D Class Reference

#include "Utilities.h"

Inheritance diagram for pma::bDistCenterLess3D:

Public Member Functions

 bDistCenterLess3D (const TVector3 &c)
 
bool operator() (TVector3 p1, TVector3 p2)
 

Private Attributes

TVector3 center
 

Detailed Description

Definition at line 131 of file Utilities.h.

Constructor & Destructor Documentation

pma::bDistCenterLess3D::bDistCenterLess3D ( const TVector3 &  c)
inline

Definition at line 135 of file Utilities.h.

135 : center(c) {}

Member Function Documentation

bool pma::bDistCenterLess3D::operator() ( TVector3  p1,
TVector3  p2 
)
inline

Definition at line 137 of file Utilities.h.

References pma::Dist2().

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)
Definition: Utilities.cxx:19

Member Data Documentation

TVector3 pma::bDistCenterLess3D::center
private

Definition at line 145 of file Utilities.h.


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