![]() |
![]() |
#include <PtComparator.h>
Public Types | |
typedef T | first_argument_type |
typedef T | second_argument_type |
Public Member Functions | |
bool | operator() (const T &a1, const T &a2) |
Definition at line 50 of file PtComparator.h.
typedef T NumericSafeGreaterByPt< T >::first_argument_type |
Definition at line 51 of file PtComparator.h.
typedef T NumericSafeGreaterByPt< T >::second_argument_type |
Definition at line 52 of file PtComparator.h.
bool NumericSafeGreaterByPt< T >::operator() | ( | const T & | a1, |
const T & | a2 | ||
) | [inline] |
Definition at line 53 of file PtComparator.h.
References epsilon.
{ return fabs (a1.pt()-a2.pt()) > std::numeric_limits<double>::epsilon() ? a1.pt() > a2.pt() : fabs (a1.px()-a2.px()) > std::numeric_limits<double>::epsilon() ? a1.px() > a2.px() : a1.pz() > a2.pz(); }