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::TrajectoryStateLessWeight ( )
inline

Definition at line 12 of file TrajectoryStateLessWeight.h.

12 {}

Member Function Documentation

◆ operator()()

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

Definition at line 13 of file TrajectoryStateLessWeight.h.

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

References a, and b.

b
double b
Definition: hdecay.h:118
a
double a
Definition: hdecay.h:119