// CheckHitCount.h #ifndef CheckHitCount_H #define CheckHitCount_H // Return true if the number of hits on the track is at or above // a threshold. // // ObjStream example: // // [ mycheck CheckHitCount min_hit_count=7 ] // #include "Checker.h" namespace trf { class CheckHitCount : public Checker { public: // static methods // Return the type name. static TypeName get_type_name() { return "CheckHitCount"; } // Return the creator. static ObjCreator get_creator(); // Return the type. static Type get_static_type() { return get_creator(); } private: // attributes // minimum number of hits double _min_nhit; private: // methods // output stream void ostr(std::ostream& stream) const; public: // methods // constructor CheckHitCount(int min_nhit); // Return the type. Type get_type() const { return get_static_type(); } // Write the object data. ObjData write_data() const; // Return minimum # hits. double get_min_hit_count() const { return _min_nhit; } // return the status for the specified track bool status(const MTrack& trm) const; }; } // end namespace trf #endif