fastjet::cms::NumericSafeGreaterByEt< T > Struct Template Reference

#include <SortByEt.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 fastjet::cms::NumericSafeGreaterByEt< T >

Definition at line 34 of file SortByEt.h.


Member Typedef Documentation

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

Definition at line 35 of file SortByEt.h.

Definition at line 36 of file SortByEt.h.


Member Function Documentation

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

Definition at line 37 of file SortByEt.h.

00037                                             {
00038     // FastJet::PseudoJet does not provide a direct access to Et2
00039     // Plus, we want it to be computed in the same way as in the CMS
00040     // code (actually the Root code that is used by CMS)
00041     double et1 = a1.Et();
00042     double et2 = a2.Et();
00043 
00044     // now we can come back to the CMS code
00045     return
00046       fabs (et1-et2) > std::numeric_limits<double>::epsilon() ? et1 > et2 :
00047       fabs (a1.px()-a2.px()) > std::numeric_limits<double>::epsilon() ? a1.px() > a2.px() :
00048       a1.pz() > a2.pz();
00049   }


The documentation for this struct was generated from the following file:

Generated on 26 Feb 2010 for fastjet by  doxygen 1.6.1