FourMomentum::byEAscending Struct Reference

#include <Vector4.hh>

List of all members.


Detailed Description

struct for sorting by increasing energy

Definition at line 414 of file Vector4.hh.


Public Member Functions

bool operator() (const FourMomentum &left, const FourMomentum &right) const
bool operator() (const FourMomentum *left, const FourMomentum *right) const

Member Function Documentation

bool operator() ( const FourMomentum left,
const FourMomentum right 
) const [inline]

Definition at line 415 of file Vector4.hh.

References FourMomentum::E().

00415                                                                                 {
00416         double pt2left = left.E();
00417         double pt2right = right.E();
00418         return pt2left < pt2right;
00419       }

bool operator() ( const FourMomentum left,
const FourMomentum right 
) const [inline]

Definition at line 421 of file Vector4.hh.

00421                                                                                 {
00422         return (*this)(left, right);
00423       }


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