test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions
NumericSafeLessByEt< T > Struct Template Reference

#include <EtComparator.h>

Public Types

typedef T first_argument_type
 
typedef T second_argument_type
 

Public Member Functions

bool operator() (const T &a1, const T &a2)
 

Detailed Description

template<class T>
struct NumericSafeLessByEt< T >

Definition at line 38 of file EtComparator.h.

Member Typedef Documentation

template<class T >
typedef T NumericSafeLessByEt< T >::first_argument_type

Definition at line 39 of file EtComparator.h.

template<class T >
typedef T NumericSafeLessByEt< T >::second_argument_type

Definition at line 40 of file EtComparator.h.

Member Function Documentation

template<class T >
bool NumericSafeLessByEt< T >::operator() ( const T a1,
const T a2 
)
inline

Definition at line 41 of file EtComparator.h.

References epsilon.

41  {
42  return
43  fabs (a1.et()-a2.et()) > std::numeric_limits<double>::epsilon() ? a1.et() < a2.et() :
44  fabs (a1.px()-a2.px()) > std::numeric_limits<double>::epsilon() ? a1.px() < a2.px() :
45  a1.pz() < a2.pz();
46  }
const double epsilon