ParticleBase::byEAscending Struct Reference

#include <ParticleBase.hh>

List of all members.


Detailed Description

Struct for sorting by increasing energy.

Definition at line 75 of file ParticleBase.hh.


Public Member Functions

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

Member Function Documentation

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

Definition at line 76 of file ParticleBase.hh.

References FourMomentum::E(), and ParticleBase::momentum().

00076                                                                                  {
00077         double pt2left = left.momentum().E();
00078         double pt2right = right.momentum().E();
00079         return pt2left < pt2right;
00080       }

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

Definition at line 82 of file ParticleBase.hh.

00082                                                                                  {
00083         return (*this)(*left, *right);
00084       }


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