CMS 3D CMS Logo

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

#include <TrajectoryStateLessWeight.h>

Public Member Functions

bool operator() (const TrajectoryStateOnSurface a, const TrajectoryStateOnSurface b) const
 
 TrajectoryStateLessWeight ()
 

Detailed Description

Compare two TrajectoryStateOnSurface acc. to their weight.

Definition at line 10 of file TrajectoryStateLessWeight.h.

Constructor & Destructor Documentation

TrajectoryStateLessWeight::TrajectoryStateLessWeight ( )
inline

Definition at line 13 of file TrajectoryStateLessWeight.h.

13 {}

Member Function Documentation

bool TrajectoryStateLessWeight::operator() ( const TrajectoryStateOnSurface  a,
const TrajectoryStateOnSurface  b 
) const
inline

Definition at line 14 of file TrajectoryStateLessWeight.h.

References TrajectoryStateOnSurface::isValid(), and TrajectoryStateOnSurface::weight().

16  {
17  if ( !a.isValid() || !b.isValid() ) return false;
18  return a.weight()>b.weight();
19  }