CMS 3D CMS Logo

NumericSafeGreaterByEt< T > Struct Template Reference

#include <PhysicsTools/Utilities/interface/EtComparator.h>

List of all members.

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 50 of file EtComparator.h.


Member Typedef Documentation

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

Definition at line 51 of file EtComparator.h.

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

Definition at line 52 of file EtComparator.h.


Member Function Documentation

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

Definition at line 53 of file EtComparator.h.

References geometryDiff::epsilon.

00053                                             {
00054     return
00055       fabs (a1.et()-a2.et()) > std::numeric_limits<double>::epsilon() ? a1.et() > a2.et() :
00056       fabs (a1.px()-a2.px()) > std::numeric_limits<double>::epsilon() ? a1.px() > a2.px() :
00057       a1.pz() > a2.pz();
00058   }


The documentation for this struct was generated from the following file:
Generated on Tue Jun 9 18:29:07 2009 for CMSSW by  doxygen 1.5.4