ParticleBase::byETAscending Struct Reference

#include <ParticleBase.hh>

List of all members.


Detailed Description

Struct for sorting by increasing transverse energy.

Definition at line 49 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 50 of file ParticleBase.hh.

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

00050                                                                                  {
00051         double pt2left = left.momentum().Et2();
00052         double pt2right = right.momentum().Et2();
00053         return pt2left < pt2right;
00054       }

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

Definition at line 56 of file ParticleBase.hh.

00056                                                                                  {
00057         return (*this)(*left, *right);
00058       }


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