AliMUONPolygon& operator=(const AliMUONPolygon& rhs);
virtual ~AliMUONPolygon();
+ /// Create a full copy of this object
virtual TObject* Clone(const char* /*newname*/="") const { return new AliMUONPolygon(*this); }
Bool_t Contains(Double_t x, Double_t y) const;
void SetVertex(Int_t i, Double_t x, Double_t y);
+ /// Return the x-coordinate of the i-th vertex
Double_t X(Int_t i) const { return fX[i]; }
+ /// Return the y-coordinate of the i-th vertex
Double_t Y(Int_t i) const { return fY[i]; }
+ /// Get the number of vertices of this polygon
Int_t NumberOfVertices() const { return fN; }
void Print(Option_t* opt="") const;
void Close();
private:
- Int_t fN; /// Number of vertices
+ Int_t fN; ///< Number of vertices
+
+ /// Vertices x coordinates
Double_t* fX; //[fN]
+
+ /// Vertices y coordinates
Double_t* fY; //[fN]
ClassDef(AliMUONPolygon,1) // A simple polygon