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