//----------------------------------------------------------- // File and Version Information: // $Id$ // // Description: // Inherits from the abstract class TpcAbsPadShape. // This class defines the shape of a square pad with the // origin in the centre // // Environment: // Software developed for the PANDA Detector at FAIR. // // Author List: // Cristoforo Simonetto TUM (original author) // // //----------------------------------------------------------- #ifndef TPCPADSHAPESQUARE_HH #define TPCPADSHAPESQUARE_HH // Base Class Headers ---------------- #include "TpcAbsPadShape.h" // Collaborating Class Headers ------- // Collaborating Class Declarations -- class TpcPadShapeSquare: public TpcAbsPadShape { public: // Constructors/Destructors --------- TpcPadShapeSquare(const double _d, const unsigned int _ID); virtual ~TpcPadShapeSquare(); // Operators friend std::ostream& operator<<(std::ostream& s, const TpcPadShapeSquare& me); // Accessors ----------------------- virtual void EvalBoundingRect(double& width, double& height, const double angle) const; virtual bool Contains(const double xp, const double yp) const; virtual int GetNBoundaryPoints() const {return(4);}; virtual void GetBoundaryPoint(const int index, double& x, double& y) const; private: // Private Data Members ------------ double d; //length of a size // Private Methods ----------------- }; #endif //-------------------------------------------------------------- // $Log$ //--------------------------------------------------------------