CMS 3D CMS Logo

Public Member Functions

TrajectoryStateLessWeight Class Reference

#include <TrajectoryStateLessWeight.h>

List of all members.

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.

{}

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().

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