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 445 of file Vector4.hh.


Member Function Documentation

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

Definition at line 452 of file Vector4.hh.

00452                                                                                 {
00453         return (*this)(left, right);
00454       }

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

Definition at line 446 of file Vector4.hh.

References FourMomentum::E().

00446                                                                                 {
00447         double pt2left = left.E();
00448         double pt2right = right.E();
00449         return pt2left < pt2right;
00450       }


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