HepPDT Reference Documentation

HepPDT

HepPDT::ParticleDataTableComparison Class Reference

The ParticleDataTableComparison class provides a utility for sorting the PDT. More...

#include <ParticleDataTableComparison.hh>

List of all members.

Public Member Functions

 ParticleDataTableComparison ()
 stateless class
bool operator() (const ParticleID &, const ParticleID &) const


Detailed Description

The ParticleDataTableComparison class provides a utility for sorting the PDT.

Author:
Lynn Garren
Sort the PDT by absolute value of the particle ID. If the absolute values are equal, the positive number comes first.

Definition at line 23 of file ParticleDataTableComparison.hh.


Constructor & Destructor Documentation

HepPDT::ParticleDataTableComparison::ParticleDataTableComparison (  )  [inline]

stateless class

Definition at line 27 of file ParticleDataTableComparison.hh.


Member Function Documentation

bool HepPDT::ParticleDataTableComparison::operator() ( const ParticleID ,
const ParticleID  
) const [inline]

Comparison method sorts by absolute value. If the absolute values are the same, the positive entry comes first.

Definition at line 36 of file ParticleDataTableComparison.hh.

References HepPDT::ParticleID::abspid(), and HepPDT::ParticleID::pid().


The documentation for this class was generated from the following file:
Generated on Fri Oct 24 13:41:39 2008 for HepPDT by  doxygen 1.5.1-3