Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:31:30

0001 #ifndef _TrackerReco_TrajectoryStateLessWeight_h_
0002 #define _TrackerReco_TrajectoryStateLessWeight_h_
0003 
0004 #include "TrackingTools/TrajectoryState/interface/TrajectoryStateOnSurface.h"
0005 
0006 /** \class TrajectoryStateLessWeight
0007  * Compare two TrajectoryStateOnSurface acc. to their weight.
0008  */
0009 
0010 class TrajectoryStateLessWeight {
0011 public:
0012   TrajectoryStateLessWeight() {}
0013   bool operator()(const TrajectoryStateOnSurface a, const TrajectoryStateOnSurface b) const {
0014     if (!a.isValid() || !b.isValid())
0015       return false;
0016     return a.weight() > b.weight();
0017   }
0018 };
0019 
0020 #endif