#include <SortByEt.h>
Public Types | |
typedef T | first_argument_type |
typedef T | second_argument_type |
Public Member Functions | |
bool | operator() (const T &a1, const T &a2) |
Definition at line 34 of file SortByEt.h.
typedef T fastjet::cms::NumericSafeGreaterByEt< T >::first_argument_type |
Definition at line 35 of file SortByEt.h.
typedef T fastjet::cms::NumericSafeGreaterByEt< T >::second_argument_type |
Definition at line 36 of file SortByEt.h.
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 }