CMS 3D CMS Logo

NumericSafeLessByPt< T > Struct Template Reference

#include <PhysicsTools/Utilities/interface/PtComparator.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 NumericSafeLessByPt< T >

Definition at line 38 of file PtComparator.h.


Member Typedef Documentation

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

Definition at line 39 of file PtComparator.h.

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

Definition at line 40 of file PtComparator.h.


Member Function Documentation

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

Definition at line 41 of file PtComparator.h.

References geometryDiff::epsilon.

00041                                             {
00042     return
00043       fabs (a1.pt()-a2.pt()) > std::numeric_limits<double>::epsilon() ? a1.pt() < a2.pt() :
00044       fabs (a1.px()-a2.px()) > std::numeric_limits<double>::epsilon() ? a1.px() < a2.px() :
00045       a1.pz() < a2.pz();
00046   }


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