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

A motif with its unique ID and the motif type. More...

#include <AliMpMotif.h>

Inheritance diagram for AliMpMotif:

Public Member Functions

 AliMpMotif (const TString &id, AliMpMotifType *motifType, Double_t dx, Double_t dy)
 
 AliMpMotif ()
 
virtual ~AliMpMotif ()
 
virtual Int_t GetNofPadDimensions () const
 Return 1 as the number of pad dimensions. More...
 
virtual Double_t GetPadDimensionX (Int_t=0) const
 Return the pad x dimension. More...
 
virtual Double_t GetPadDimensionY (Int_t=0) const
 Return the pad y dimension. More...
 
virtual void GetPadDimensionsByIndices (MpPair_t localIndices, Double_t &dx, Double_t &dy) const
 Return the dimensions of the pad specified by localIndices. More...
 
virtual void GetPadDimensionsByIndices (Int_t ixLocal, Int_t iyLocal, Double_t &dx, Double_t &dy) const
 Return the dimensions of the pad specified by localIndices. More...
 
virtual Double_t DimensionX () const
 Return x dimensions. More...
 
virtual Double_t DimensionY () const
 Return y dimensions. More...
 
virtual void PadPositionLocal (MpPair_t localIndices, Double_t &posx, Double_t &posy) const
 Fill local position of the pad specified by local indices. More...
 
virtual void PadPositionLocal (Int_t ixLocal, Int_t iyLocal, Double_t &posx, Double_t &posy) const
 Fill local position of the pad specified by local indices. More...
 
virtual MpPair_t PadIndicesLocal (Double_t localPosX, Double_t localPosY) const
 Return local indices of the pad specified by local position. More...
 
- Public Member Functions inherited from AliMpVMotif
 AliMpVMotif (const TString &id, AliMpMotifType *motifType)
 
 AliMpVMotif ()
 
virtual ~AliMpVMotif ()
 
AliMpMotifTypeGetMotifType () const
 Return the motif type. More...
 
TString GetID () const
 Return the motif identifier. More...
 
AliMpConnectionFindConnectionByLocalPos (Double_t localPosX, Double_t localPosY) const
 
virtual void Print (Option_t *option) const
 

Private Attributes

Double_t fPadDimensionX
 pad dimensions (halflength x, y size) More...
 
Double_t fPadDimensionY
 pad dimensions (halflength x, y size) More...
 

Detailed Description

A motif with its unique ID and the motif type.

Author
David Guez, Ivana Hrivnacova; IPN Orsay

Definition at line 23 of file AliMpMotif.h.

Constructor & Destructor Documentation

AliMpMotif::AliMpMotif ( const TString &  id,
AliMpMotifType motifType,
Double_t  dx,
Double_t  dy 
)

Standard constructor.
The dimension in a given direction is calculated by multiplying the total dimension by the number of pads

Definition at line 49 of file AliMpMotif.cxx.

AliMpMotif::AliMpMotif ( )

Default constructor

Definition at line 40 of file AliMpMotif.cxx.

AliMpMotif::~AliMpMotif ( )
virtual

Destructor

Definition at line 61 of file AliMpMotif.cxx.

Member Function Documentation

Double_t AliMpMotif::DimensionX ( ) const
virtual

Return x dimensions.

Give the x dimension of the motif

Implements AliMpVMotif.

Definition at line 94 of file AliMpMotif.cxx.

Referenced by AliMpRowSegmentLSpecial::MotifCenterSlow(), AliMpRowSegmentRSpecial::MotifCenterSlow(), PadIndicesLocal(), and PadPositionLocal().

Double_t AliMpMotif::DimensionY ( ) const
virtual

Return y dimensions.

Give the y dimension of the motif

Implements AliMpVMotif.

Definition at line 102 of file AliMpMotif.cxx.

Referenced by AliMpRowSegmentLSpecial::MotifCenterSlow(), AliMpRowSegmentRSpecial::MotifCenterSlow(), PadIndicesLocal(), and PadPositionLocal().

Int_t AliMpMotif::GetNofPadDimensions ( ) const
inlinevirtual

Return 1 as the number of pad dimensions.

Implements AliMpVMotif.

Definition at line 68 of file AliMpMotif.h.

void AliMpMotif::GetPadDimensionsByIndices ( MpPair_t  localIndices,
Double_t &  dx,
Double_t &  dy 
) const
virtual

Return the dimensions of the pad specified by localIndices.

Give the dimension of the specified pad in the motif

Implements AliMpVMotif.

Definition at line 68 of file AliMpMotif.cxx.

Referenced by GetPadDimensionsByIndices().

void AliMpMotif::GetPadDimensionsByIndices ( Int_t  ixLocal,
Int_t  iyLocal,
Double_t &  dx,
Double_t &  dy 
) const
virtual

Return the dimensions of the pad specified by localIndices.

Give the dimension of the specified pad in the motif

Implements AliMpVMotif.

Definition at line 85 of file AliMpMotif.cxx.

Double_t AliMpMotif::GetPadDimensionX ( Int_t  = 0) const
inlinevirtual
Double_t AliMpMotif::GetPadDimensionY ( Int_t  = 0) const
inlinevirtual

Return the pad y dimension.

Implements AliMpVMotif.

Definition at line 76 of file AliMpMotif.h.

Referenced by AliMpVPadRowSegment::HalfSizeY().

MpPair_t AliMpMotif::PadIndicesLocal ( Double_t  localPosX,
Double_t  localPosY 
) const
virtual

Return local indices of the pad specified by local position.

Return the pad indices from a given local position or (-1,-1) if this position doesn't correspond to any valid connection

Implements AliMpVMotif.

Definition at line 133 of file AliMpMotif.cxx.

void AliMpMotif::PadPositionLocal ( MpPair_t  localIndices,
Double_t &  posx,
Double_t &  posy 
) const
virtual

Fill local position of the pad specified by local indices.

Give the local position of the pad number (ix,iy) (0,0 is the center of the motif)

Implements AliMpVMotif.

Definition at line 110 of file AliMpMotif.cxx.

void AliMpMotif::PadPositionLocal ( Int_t  ixLocal,
Int_t  iyLocal,
Double_t &  posx,
Double_t &  posy 
) const
virtual

Fill local position of the pad specified by local indices.

Give the local position of the pad number (ix,iy) (0,0 is the center of the motif)

Implements AliMpVMotif.

Definition at line 122 of file AliMpMotif.cxx.

Member Data Documentation

Double_t AliMpMotif::fPadDimensionX
private

pad dimensions (halflength x, y size)

Definition at line 59 of file AliMpMotif.h.

Referenced by DimensionX(), GetPadDimensionsByIndices(), GetPadDimensionX(), PadIndicesLocal(), and PadPositionLocal().

Double_t AliMpMotif::fPadDimensionY
private

pad dimensions (halflength x, y size)

Definition at line 60 of file AliMpMotif.h.

Referenced by DimensionY(), GetPadDimensionsByIndices(), GetPadDimensionY(), PadIndicesLocal(), and PadPositionLocal().


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