LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
pma::bDistCenterLess3D Class Reference

#include "Utilities.h"

Public Member Functions

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

Private Attributes

TVector3 center
 

Detailed Description

Definition at line 144 of file Utilities.h.

Constructor & Destructor Documentation

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

Definition at line 146 of file Utilities.h.

146 : center(c) {}

Member Function Documentation

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

Definition at line 148 of file Utilities.h.

References pma::Dist2().

149  {
150  double b1 = pma::Dist2(p1, center);
151  double b2 = pma::Dist2(p2, center);
152  return b1 < b2;
153  }
double Dist2(const TVector2 &v1, const TVector2 &v2)
Definition: Utilities.cxx:39

Member Data Documentation

TVector3 pma::bDistCenterLess3D::center
private

Definition at line 156 of file Utilities.h.


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