00001 #ifndef RecHitIsInvalid_H 00002 #define RecHitIsInvalid_H 00003 00004 #include "TrackingTools/PatternTools/interface/TrajectoryMeasurement.h" 00005 #include <functional> 00006 00010 class RecHitIsInvalid : public std::unary_function< const TrajectoryMeasurement&, bool> { 00011 public: 00012 bool operator()( const TrajectoryMeasurement& meas) { 00013 return !meas.recHit()->isValid(); 00014 } 00015 }; 00016 00017 #endif