![]() |
AliRoot Core
3dc7879 (3dc7879)
|
A motif with its unique ID and the motif type. More...
#include <AliMpMotif.h>
Public Member Functions | |
AliMpMotif (const TString &id, AliMpMotifType *motifType, Double_t dx, Double_t dy) | |
AliMpMotif () | |
virtual | ~AliMpMotif () |
TObject * | Clone (const char *newid) const |
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... | |
![]() | |
AliMpVMotif (const TString &id, AliMpMotifType *motifType) | |
AliMpVMotif () | |
virtual | ~AliMpVMotif () |
AliMpMotifType * | GetMotifType () const |
Return the motif type. More... | |
TString | GetID () const |
Return the motif identifier. More... | |
AliMpConnection * | FindConnectionByLocalPos (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... | |
A motif with its unique ID and the motif type.
Definition at line 23 of file AliMpMotif.h.
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 | ( | ) |
|
virtual |
Destructor
Definition at line 70 of file AliMpMotif.cxx.
TObject * AliMpMotif::Clone | ( | const char * | newid | ) | const |
Definition at line 62 of file AliMpMotif.cxx.
|
virtual |
Return x dimensions.
Give the x dimension of the motif
Implements AliMpVMotif.
Definition at line 103 of file AliMpMotif.cxx.
Referenced by AliMpRowSegmentLSpecial::MotifCenterSlow(), AliMpRowSegmentRSpecial::MotifCenterSlow(), PadIndicesLocal(), and PadPositionLocal().
|
virtual |
Return y dimensions.
Give the y dimension of the motif
Implements AliMpVMotif.
Definition at line 111 of file AliMpMotif.cxx.
Referenced by AliMpRowSegmentLSpecial::MotifCenterSlow(), AliMpRowSegmentRSpecial::MotifCenterSlow(), PadIndicesLocal(), and PadPositionLocal().
|
inlinevirtual |
Return 1 as the number of pad dimensions.
Implements AliMpVMotif.
Definition at line 70 of file AliMpMotif.h.
|
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 77 of file AliMpMotif.cxx.
Referenced by GetPadDimensionsByIndices().
|
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 94 of file AliMpMotif.cxx.
|
inlinevirtual |
Return the pad x dimension.
Implements AliMpVMotif.
Definition at line 74 of file AliMpMotif.h.
Referenced by Clone(), AliMpPadRowLSegment::FirstPadCenterX(), AliMpPadRowRSegment::FirstPadCenterX(), AliMpPadRowLSegment::LastPadBorderX(), AliMpPadRowRSegment::LastPadBorderX(), AliMpPadRowRSegment::LastPadCenterX(), and AliMpPadRowLSegment::LastPadCenterX().
|
inlinevirtual |
Return the pad y dimension.
Implements AliMpVMotif.
Definition at line 78 of file AliMpMotif.h.
Referenced by Clone(), and AliMpVPadRowSegment::HalfSizeY().
|
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 142 of file AliMpMotif.cxx.
|
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 119 of file AliMpMotif.cxx.
|
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 131 of file AliMpMotif.cxx.
|
private |
pad dimensions (halflength x, y size)
Definition at line 61 of file AliMpMotif.h.
Referenced by DimensionX(), GetPadDimensionsByIndices(), GetPadDimensionX(), PadIndicesLocal(), and PadPositionLocal().
|
private |
pad dimensions (halflength x, y size)
Definition at line 62 of file AliMpMotif.h.
Referenced by DimensionY(), GetPadDimensionsByIndices(), GetPadDimensionY(), PadIndicesLocal(), and PadPositionLocal().