// AddFitZPlane_Z2.h #ifndef AddFitZPlane_Z2_H #define AddFitZPlane_Z2_H // An add fitter to add a zplane (x,y)-measurement to a track // with no hits. #include "trffit/AddFitter.h" #include "trfbase/ObjDoublePtr.h" namespace trf { class AddFitZPlane_Z2 : public AddFitter { protected : double _qptmax2; public: // static methods // Return the type name. static TypeName get_type_name() { return "AddFitZPlane_Z2"; } // Return the creator. static ObjCreator get_creator(); // Return the type. static Type get_static_type() { return get_creator(); } private: // methods // ouput stream void ostr(std::ostream& stream) const; public: // methods // constructor AddFitZPlane_Z2( double ptmin ); // destructor ~AddFitZPlane_Z2(); // add the hit int add_hit(HTrack& trh, const HitPtr& phit) const; // Return the type. Type get_type() const { return get_static_type(); } // Write the object data. ObjData write_data() const; double get_ptmin() const { return std::sqrt(1./_qptmax2); } }; } // end namespace trf #endif