FourMomentum::byEAscending Struct Reference

#include <Vector4.hh>

List of all members.


Detailed Description

struct for sorting by increasing energy

Definition at line 416 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 417 of file Vector4.hh.

References FourMomentum::E().

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

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

Definition at line 423 of file Vector4.hh.

00423                                                                                 {
00424         return (*this)(left, right);
00425       }


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