AliRoot Core  v5-06-15 (45dab64)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMpVMotif Class Referenceabstract

Abstract base class for a motif with its unique ID and the motif type. More...

#include <AliMpVMotif.h>

Inheritance diagram for AliMpVMotif:

Public Member Functions

 AliMpVMotif (const TString &id, AliMpMotifType *motifType)
 
 AliMpVMotif ()
 
virtual ~AliMpVMotif ()
 
AliMpMotifTypeGetMotifType () const
 Return the motif type. More...
 
TString GetID () const
 Return the motif identifier. More...
 
virtual Int_t GetNofPadDimensions () const =0
 Return the number of pad dimensions. More...
 
virtual Double_t GetPadDimensionX (Int_t i) const =0
 Return the i-th pad x dimension. More...
 
virtual Double_t GetPadDimensionY (Int_t i) const =0
 Return the i-th pad y dimension. More...
 
virtual void GetPadDimensionsByIndices (MpPair_t localIndices, Double_t &dx, Double_t &dy) const =0
 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 =0
 Return the dimensions of the pad specified by localIndices. More...
 
virtual Double_t DimensionX () const =0
 Return x dimensions. More...
 
virtual Double_t DimensionY () const =0
 Return y dimensions. More...
 
virtual void PadPositionLocal (MpPair_t localIndices, Double_t &posx, Double_t &posy) const =0
 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 =0
 Fill local position of the pad specified by local indices. More...
 
AliMpConnectionFindConnectionByLocalPos (Double_t localPosX, Double_t localPosY) const
 
virtual MpPair_t PadIndicesLocal (Double_t localPosX, Double_t localPosY) const =0
 Return local indices of the pad specified by local position. More...
 
virtual void Print (Option_t *option) const
 

Private Member Functions

 AliMpVMotif (const AliMpVMotif &right)
 Not implemented. More...
 
AliMpVMotifoperator= (const AliMpVMotif &right)
 Not implemented. More...
 

Private Attributes

TString fID
 identifier More...
 
AliMpMotifTypefMotifType
 the motif type More...
 

Detailed Description

Abstract base class for a motif with its unique ID and the motif type.

Author
David Guez, Ivana Hrivnacova; IPN Orsay

Definition at line 24 of file AliMpVMotif.h.

Constructor & Destructor Documentation

AliMpVMotif::AliMpVMotif ( const TString &  id,
AliMpMotifType motifType 
)

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

Definition at line 54 of file AliMpVMotif.cxx.

AliMpVMotif::AliMpVMotif ( )

Default constructor

Definition at line 46 of file AliMpVMotif.cxx.

AliMpVMotif::~AliMpVMotif ( )
virtual

Destructor

Definition at line 65 of file AliMpVMotif.cxx.

AliMpVMotif::AliMpVMotif ( const AliMpVMotif right)
private

Not implemented.

Member Function Documentation

AliMpConnection * AliMpVMotif::FindConnectionByLocalPos ( Double_t  localPosX,
Double_t  localPosY 
) const

Return the local indices from the local (x,y) position

Definition at line 72 of file AliMpVMotif.cxx.

virtual Int_t AliMpVMotif::GetNofPadDimensions ( ) const
pure virtual

Return the number of pad dimensions.

Implemented in AliMpMotifSpecial, and AliMpMotif.

Referenced by AliMUONManuContourMaker::NameIt().

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

Return the dimensions of the pad specified by localIndices.

Implemented in AliMpMotif, and AliMpMotifSpecial.

virtual Double_t AliMpVMotif::GetPadDimensionX ( Int_t  i) const
pure virtual

Return the i-th pad x dimension.

Implemented in AliMpMotifSpecial, and AliMpMotif.

Referenced by AliMpMotifMap::FindMotif(), AliMpDEVisu::InfoManuMotif(), and AliMUONManuContourMaker::NameIt().

virtual Double_t AliMpVMotif::GetPadDimensionY ( Int_t  i) const
pure virtual

Return the i-th pad y dimension.

Implemented in AliMpMotifSpecial, and AliMpMotif.

Referenced by AliMpMotifMap::FindMotif(), AliMpDEVisu::InfoManuMotif(), and AliMUONManuContourMaker::NameIt().

AliMpVMotif& AliMpVMotif::operator= ( const AliMpVMotif right)
private

Not implemented.

virtual MpPair_t AliMpVMotif::PadIndicesLocal ( Double_t  localPosX,
Double_t  localPosY 
) const
pure virtual

Return local indices of the pad specified by local position.

Implemented in AliMpMotifSpecial, and AliMpMotif.

Referenced by FindConnectionByLocalPos(), AliMpPCB::FindMotifPosition(), AliMpSectorSegmentation::PadByPosition(), and AliMpSlatSegmentation::PadByPosition().

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

Fill local position of the pad specified by local indices.

Implemented in AliMpMotifSpecial, and AliMpMotif.

void AliMpVMotif::Print ( Option_t *  option) const
virtual

Print the map of the motif. In each cel, the value printed depends of option, as the following:

  • option="N" the "name" of the pad is written
  • option="K" the Kapton connect. number attached to the pad is written
  • option="B" the Berg connect. number attached to the pad is written
  • option="X" the (X,Y) position, in cm, of the center of the pad is written otherwise the number of the pad is written

NOTE : this method is really not optimized, in case 'N' or '', but the Print() this should not be very important in a Print() method

Definition at line 85 of file AliMpVMotif.cxx.

Referenced by AliMpMotifPosition::Print().

Member Data Documentation

TString AliMpVMotif::fID
private

identifier

Definition at line 78 of file AliMpVMotif.h.

Referenced by GetID(), and Print().

AliMpMotifType* AliMpVMotif::fMotifType
private

the motif type

Definition at line 79 of file AliMpVMotif.h.

Referenced by FindConnectionByLocalPos(), GetMotifType(), and Print().


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