CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
sortByPabs Struct Reference

Public Member Functions

bool operator() (const PSimHit &a, const PSimHit &b) const
 

Detailed Description

Definition at line 40 of file PlotSimTracks.cc.

Member Function Documentation

bool sortByPabs::operator() ( const PSimHit a,
const PSimHit b 
) const
inline

Definition at line 42 of file PlotSimTracks.cc.

References PSimHit::pabs().

43  {
44  return (a.pabs() > b.pabs());
45  }
float pabs() const
fast and more accurate access to momentumAtEntry().mag()
Definition: PSimHit.h:63