// HitXYPlane2Generator.h #ifndef HitXYPlane2Generator_H #define HitXYPlane2Generator_H // Generator for ClusXYPlane2 objects. #include "trfbase/HitGenerator.h" #include "trfbase/HitVector.h" #include "SurfXYPlane.h" namespace trf { class HitXYPlane2Generator : public HitGenerator { private: // attributes // the surface SurfXYPlane _sxyp; // the error matrix for the measurement (v,z) HitError _dhm; private: // methods // hide assignment operator HitXYPlane2Generator& operator=(const HitXYPlane2Generator& rhs); // output stream void ostr(std::ostream& stream) const; public: // Constructor from plane position , measurement position, error. HitXYPlane2Generator(double dist, double phi, const HitError& dhm); // Constructor from above plus random number seed. HitXYPlane2Generator(double dist, double phi, const HitError& dhm, long iseed); // Copy constructor. HitXYPlane2Generator(const HitXYPlane2Generator& rhs); // Destructor. ~HitXYPlane2Generator(); // Return the surface. const Surface& get_surface() const { return _sxyp; }; // Generate a new cluster. // Caller must delete. // Return 0 for failure. Cluster* new_cluster(const VTrack& trv); }; } // end namespace trf #endif