CMS 3D CMS Logo

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 12 of file TrajectoryStateLessWeight.h.

12 {}

Member Function Documentation

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

Definition at line 13 of file TrajectoryStateLessWeight.h.

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

13  {
14  if (!a.isValid() || !b.isValid())
15  return false;
16  return a.weight() > b.weight();
17  }