rivet is hosted by Hepforge, IPPP Durham
FourMomentum::byEAscending Struct Reference

Struct for sorting by increasing energy. More...

#include <Vector4.hh>

List of all members.

Public Member Functions

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

Detailed Description

Struct for sorting by increasing energy.

Definition at line 482 of file Vector4.hh.


Member Function Documentation

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

Definition at line 483 of file Vector4.hh.

References FourMomentum::E().

                                                                                {
        double pt2left = left.E();
        double pt2right = right.E();
        return pt2left < pt2right;
      }
bool operator() ( const FourMomentum left,
const FourMomentum right 
) const [inline]

Definition at line 489 of file Vector4.hh.

                                                                                {
        return (*this)(left, right);
      }

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