CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions
NumericSafeGreaterByEt< 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 NumericSafeGreaterByEt< T >

Definition at line 45 of file EtComparator.h.

Member Typedef Documentation

◆ first_argument_type

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

Definition at line 46 of file EtComparator.h.

◆ second_argument_type

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

Definition at line 47 of file EtComparator.h.

Member Function Documentation

◆ operator()()

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

Definition at line 48 of file EtComparator.h.

48  {
49  return fabs(a1.et() - a2.et()) > std::numeric_limits<double>::epsilon()
50  ? a1.et() > a2.et()
51  : fabs(a1.px() - a2.px()) > std::numeric_limits<double>::epsilon() ? a1.px() > a2.px()
52  : a1.pz() > a2.pz();
53  }

References testProducerWithPsetDescEmpty_cfi::a2, and geometryDiff::epsilon.

geometryDiff.epsilon
int epsilon
Definition: geometryDiff.py:26
testProducerWithPsetDescEmpty_cfi.a2
a2
Definition: testProducerWithPsetDescEmpty_cfi.py:35