All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
icarus::PMTsorterStandard::OpDetGeoCenterCoordComparer< Coord > Struct Template Reference

Public Member Functions

 OpDetGeoCenterCoordComparer (double tol=0.0)
 Constructor: fixes the tolerance for the comparison. More...
 
bool operator() (geo::OpDetGeo const &A, geo::OpDetGeo const &B) const
 Returns whether A has a center coordinate Coord smaller than B. More...
 

Public Attributes

lar::util::RealComparisons
< double > const 
fCmp
 Object used for comparison; includes a tolerance. More...
 

Detailed Description

template<double(geo::Point_t::*)() const Coord>
struct icarus::PMTsorterStandard::OpDetGeoCenterCoordComparer< Coord >

geo::OpDetGeo comparer according to one coordinate of their center. Accomodates for some tolerance.

Definition at line 133 of file PMTsorting.h.

Constructor & Destructor Documentation

template<double(geo::Point_t::*)() const Coord>
icarus::PMTsorterStandard::OpDetGeoCenterCoordComparer< Coord >::OpDetGeoCenterCoordComparer ( double  tol = 0.0)
inline

Constructor: fixes the tolerance for the comparison.

Definition at line 139 of file PMTsorting.h.

139 : fCmp(tol) {}
auto const tol
Definition: SurfXYZTest.cc:16
lar::util::RealComparisons< double > const fCmp
Object used for comparison; includes a tolerance.
Definition: PMTsorting.h:136

Member Function Documentation

template<double(geo::Point_t::*)() const Coord>
bool icarus::PMTsorterStandard::OpDetGeoCenterCoordComparer< Coord >::operator() ( geo::OpDetGeo const &  A,
geo::OpDetGeo const &  B 
) const
inline

Returns whether A has a center coordinate Coord smaller than B.

Definition at line 142 of file PMTsorting.h.

143  {
144  return fCmp.strictlySmaller
145  ((A.GetCenter().*Coord)(), (B.GetCenter().*Coord)());
146  }
constexpr bool strictlySmaller(Value_t a, Value_t b) const
Returns whether a is strictly smaller than b.
float A
Definition: dedx.py:137
lar::util::RealComparisons< double > const fCmp
Object used for comparison; includes a tolerance.
Definition: PMTsorting.h:136

Member Data Documentation

template<double(geo::Point_t::*)() const Coord>
lar::util::RealComparisons<double> const icarus::PMTsorterStandard::OpDetGeoCenterCoordComparer< Coord >::fCmp

Object used for comparison; includes a tolerance.

Definition at line 136 of file PMTsorting.h.


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