29 #include <Riostream.h> 30 #include <TGeoMatrix.h> 32 #include <TObjArray.h> 33 #include <TPolyLine.h> 54 fPolygons->SetOwner(kTRUE);
61 fXmin(area.LeftBorder()),
62 fXmax(area.RightBorder()),
63 fYmin(area.DownBorder()),
64 fYmax(area.UpBorder()),
124 Double_t x = polygon.
X(i);
125 Double_t y = polygon.
Y(i);
158 for ( Int_t i = 0; i <=
fPolygons->GetLast(); ++i )
169 AliError(
"Got a polygon oriented the wrong way");
189 while ( ( pol = static_cast<AliMUONPolygon*>(next()) ) )
210 while ( ( pol = static_cast<AliMUONPolygon*>(next()) ) )
231 while ( ( pol = static_cast<AliMUONPolygon*>(next()) ) )
254 if (sopt.Contains(
"B"))
261 while ( ( pol = static_cast<AliMUONPolygon*>(next()) ) )
282 while ( ( pol = static_cast<AliMUONPolygon*>(next()) ) )
286 Double_t pl[3] = { pol->
X(i), pol->
Y(i), 0 };
287 Double_t pg[3] = { 0., 0., 0. };
288 matrix.LocalToMaster(pl, pg);
Double_t Y(Int_t i) const
Return the y-coordinate of the i-th vertex.
Double_t GetDimensionY() const
Return y dimensions.
Double_t GetPositionY() const
Return y position.
Double_t fXmax
max x-value
void AssertOrientation(Bool_t autoCorrect=kFALSE)
A rectangle area positioned in plane..
Int_t NumberOfVertices() const
Get the number of vertices of this contour.
Bool_t IsCounterClockwiseOriented() const
Whether this polygon is oriented counter clockwise.
void Print(Option_t *opt="") const
void Offset(Double_t x, Double_t y)
Add an offset to all points.
Int_t NumberOfVertices() const
Get the number of vertices of this polygon.
Double_t X(Int_t i) const
Return the x-coordinate of the i-th vertex.
AliMUONContour & operator=(const AliMUONContour &rhs)
void Add(const AliMUONPolygon &polygon)
void Print(Option_t *opt="") const
Double_t GetDimensionX() const
Return x dimensions.
virtual void Copy(TObject &obj) const
Int_t fNofVertices
total number of vertices
Double_t fYmax
max y-value
void SetVertex(Int_t i, Double_t x, Double_t y)
Double_t GetPositionX() const
Return x position.
Double_t fXmin
min x-value
virtual void Print(Option_t *opt="") const
Double_t fYmin
min y-value
#define StdoutToAliError(whatever)
virtual ~AliMUONContour()
Bool_t IsValid() const
Return validity.
void ReverseOrientation()
#define AliError(message)
Bool_t IsInside(Double_t x, Double_t y) const
AliMUONContour(const char *name="")
virtual TObject * Clone(const char *="") const
Create a full copy of this object.
void Transform(const TGeoHMatrix &matrix)
Apply a global transformation to all points.
TObjArray * fPolygons
the polygons that this contour is made of
Bool_t Contains(Double_t x, Double_t y) const