AliRoot Core  d69033e (d69033e)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMpArea Class Reference

A rectangle area positioned in plane.. More...

#include <AliMpArea.h>

Inheritance diagram for AliMpArea:

Public Member Functions

 AliMpArea (Double_t x, Double_t y, Double_t dx, Double_t dy)
 
 AliMpArea (const AliMpArea &rhs)
 
 AliMpArea ()
 
virtual ~AliMpArea ()
 
AliMpAreaoperator= (const AliMpArea &right)
 
Double_t LeftBorder () const
 
Double_t RightBorder () const
 
Double_t UpBorder () const
 
Double_t DownBorder () const
 
void LeftDownCorner (Double_t &x, Double_t &y) const
 
void LeftUpCorner (Double_t &x, Double_t &y) const
 
void RightDownCorner (Double_t &x, Double_t &y) const
 
void RightUpCorner (Double_t &x, Double_t &y) const
 
AliMpArea Intersect (const AliMpArea &area) const
 
Bool_t Overlap (const AliMpArea &area) const
 
Bool_t Contains (const AliMpArea &area) const
 
void Print (Option_t *opt="") const
 
void GetParameters (Double_t &x, Double_t &y, Double_t &dx, Double_t &dy) const
 
Double_t GetPositionX () const
 Return x position. More...
 
Double_t GetPositionY () const
 Return y position. More...
 
Double_t GetDimensionX () const
 Return x dimensions. More...
 
Double_t GetDimensionY () const
 Return y dimensions. More...
 
Bool_t IsValid () const
 Return validity. More...
 

Private Attributes

Double_t fPositionX
 x position More...
 
Double_t fPositionY
 y position More...
 
Double_t fDimensionX
 x dimension (half lengths) More...
 
Double_t fDimensionY
 y dimension (half lengths) More...
 
Bool_t fValidity
 validity More...
 

Detailed Description

A rectangle area positioned in plane..

Author
David Guez, Ivana Hrivnacova; IPN Orsay

Definition at line 20 of file AliMpArea.h.

Constructor & Destructor Documentation

AliMpArea::AliMpArea ( Double_t  x,
Double_t  y,
Double_t  dx,
Double_t  dy 
)

Standard constructor

Definition at line 42 of file AliMpArea.cxx.

AliMpArea::AliMpArea ( const AliMpArea rhs)

Copy constructor

Definition at line 78 of file AliMpArea.cxx.

AliMpArea::AliMpArea ( )

Default constructor

Definition at line 66 of file AliMpArea.cxx.

Referenced by Intersect().

AliMpArea::~AliMpArea ( )
virtual

Destructor

Definition at line 90 of file AliMpArea.cxx.

Member Function Documentation

Bool_t AliMpArea::Contains ( const AliMpArea area) const
Double_t AliMpArea::GetDimensionX ( ) const
inline
Double_t AliMpArea::GetDimensionY ( ) const
inline
void AliMpArea::GetParameters ( Double_t &  x,
Double_t &  y,
Double_t &  dx,
Double_t &  dy 
) const

Fill the parameters: x, y position and dimensions

Definition at line 274 of file AliMpArea.cxx.

Double_t AliMpArea::GetPositionX ( ) const
inline
Double_t AliMpArea::GetPositionY ( ) const
inline
AliMpArea AliMpArea::Intersect ( const AliMpArea area) const

Return the common part of area and this

Definition at line 217 of file AliMpArea.cxx.

Referenced by AliMUONSimpleClusterServer::Overlap().

void AliMpArea::LeftDownCorner ( Double_t &  x,
Double_t &  y 
) const
void AliMpArea::LeftUpCorner ( Double_t &  x,
Double_t &  y 
) const

Return position of the left up corner.

Definition at line 165 of file AliMpArea.cxx.

AliMpArea & AliMpArea::operator= ( const AliMpArea right)

Assignment operator

Definition at line 100 of file AliMpArea.cxx.

Bool_t AliMpArea::Overlap ( const AliMpArea area) const

Return true if this overlaps with given area

Definition at line 231 of file AliMpArea.cxx.

Referenced by AliMUONTriggerTrackToTrackerClusters::DetElemId(), AliMUONPreClusterFinder::GetNextPad(), and AliMUONSimpleClusterServer::Overlap().

void AliMpArea::Print ( Option_t *  opt = "") const

Printing When option is set to B (borders), the area boreders will be printed instead of default parameters

Definition at line 252 of file AliMpArea.cxx.

Referenced by AliMUONManuContourMaker::CreateMotifContour(), and AliMUONContour::Print().

void AliMpArea::RightDownCorner ( Double_t &  x,
Double_t &  y 
) const

Return position of the right down corner.

Definition at line 174 of file AliMpArea.cxx.

void AliMpArea::RightUpCorner ( Double_t &  x,
Double_t &  y 
) const

Member Data Documentation

Double_t AliMpArea::fDimensionX
private

x dimension (half lengths)

Definition at line 63 of file AliMpArea.h.

Referenced by GetDimensionX(), GetParameters(), LeftBorder(), operator=(), and RightBorder().

Double_t AliMpArea::fDimensionY
private

y dimension (half lengths)

Definition at line 64 of file AliMpArea.h.

Referenced by DownBorder(), GetDimensionY(), GetParameters(), operator=(), and UpBorder().

Double_t AliMpArea::fPositionX
private

x position

Definition at line 61 of file AliMpArea.h.

Referenced by GetParameters(), GetPositionX(), LeftBorder(), operator=(), and RightBorder().

Double_t AliMpArea::fPositionY
private

y position

Definition at line 62 of file AliMpArea.h.

Referenced by DownBorder(), GetParameters(), GetPositionY(), operator=(), and UpBorder().

Bool_t AliMpArea::fValidity
private

validity

Definition at line 65 of file AliMpArea.h.

Referenced by IsValid(), and operator=().


The documentation for this class was generated from the following files: