LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
compare_to_value Struct Reference

Public Member Functions

 compare_to_value (int b)
 
bool operator() (int i, int j)
 

Public Attributes

int b
 

Detailed Description

Definition at line 222 of file CornerFinderAlg.cxx.

Constructor & Destructor Documentation

compare_to_value::compare_to_value ( int  b)
inline

Definition at line 224 of file CornerFinderAlg.cxx.

224 { this->b = b; }

Member Function Documentation

bool compare_to_value::operator() ( int  i,
int  j 
)
inline

Definition at line 225 of file CornerFinderAlg.cxx.

References util::abs().

225 { return std::abs(b - i) < std::abs(b - j); }
constexpr auto abs(T v)
Returns the absolute value of the argument.

Member Data Documentation

int compare_to_value::b

Definition at line 227 of file CornerFinderAlg.cxx.


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