// CheckZInt.h #ifndef CheckZInt_H #define CheckZInt_H // Return true if the track z intercept at the beamline is // at or below a threshold. // // ObjStream example: // // [ mycheck CheckZInt max_zint=100. ] // #include #include "Checker.h" #include "trfcut/CutID.hpp" namespace trf { class CheckZInt : public Checker { public: // static methods // Return the type name. static TypeName get_type_name() { return "CheckZInt"; } // Return the creator. static ObjCreator get_creator(); // Return the type. static Type get_static_type() { return get_creator(); } private: // attributes // z intercept threshold double _max_zint; // Cut recorder cut id. CutID _cut_id; private: // methods // output stream void ostr(std::ostream& stream) const; public: // methods // constructor CheckZInt(double max_zint, const std::string& cut_name=""); // Return the type. Type get_type() const { return get_static_type(); } // Write the object data. ObjData write_data() const; // Return max z intercept. double get_max_zint() const { return _max_zint; } // return the status for the specified track bool status_with_record(const MTrack& trm, CutRecord* prec) const; }; } // end namepace trf #endif