1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
5 // $MpId: AliMpArea.h,v 1.7 2005/08/26 15:43:36 ivana Exp $
9 /// \brief A rectangle area positioned in plane..
11 /// Authors: David Guez, Ivana Hrivnacova; IPN Orsay
19 class AliMpArea : public TObject
22 AliMpArea(const TVector2& position, const TVector2& dimensions);
23 AliMpArea(const AliMpArea& rhs);
28 AliMpArea& operator = (const AliMpArea& right);
31 Double_t LeftBorder() const;
32 Double_t RightBorder() const;
33 Double_t UpBorder() const;
34 Double_t DownBorder() const;
36 TVector2 LeftDownCorner() const;
37 TVector2 LeftUpCorner() const;
38 TVector2 RightDownCorner() const;
39 TVector2 RightUpCorner() const;
42 TVector2 Position() const;
43 TVector2 Dimensions() const;
44 Bool_t IsValid() const;
48 TVector2 fPosition; // position
49 TVector2 fDimensions;// dimensions (half lengths)
50 Bool_t fValidity; // validity
52 ClassDef(AliMpArea,1) //utility class for area iterators
55 ostream& operator << (ostream &stream,const AliMpArea& area);
59 inline TVector2 AliMpArea::Position() const { return fPosition; }
60 inline TVector2 AliMpArea::Dimensions() const { return fDimensions; }
61 inline Bool_t AliMpArea::IsValid() const { return fValidity; }
63 #endif //ALI_MP_AREA_H