00001 #ifndef _TrackerReco_TrajectoryStateLessWeight_h_ 00002 #define _TrackerReco_TrajectoryStateLessWeight_h_ 00003 00004 #include "TrackingTools/TrajectoryState/interface/TrajectoryStateOnSurface.h" 00005 00010 class TrajectoryStateLessWeight { 00011 00012 public: 00013 TrajectoryStateLessWeight() {} 00014 bool operator()(const TrajectoryStateOnSurface a, 00015 const TrajectoryStateOnSurface b) const 00016 { 00017 if ( !a.isValid() || !b.isValid() ) return false; 00018 return a.weight()>b.weight(); 00019 } 00020 }; 00021 00022 #endif