![]() |
AliRoot Core
3dc7879 (3dc7879)
|
A row segment composed of the the identic motifs. More...
#include <AliMpRowSegment.h>
Public Member Functions | |
AliMpRowSegment (AliMpRow *row, AliMpVMotif *motif, Int_t padOffsetX, Int_t padOffsetY, Int_t nofMotifs, Int_t motifPositionId, Int_t motifPositionDId) | |
AliMpRowSegment () | |
virtual | ~AliMpRowSegment () |
virtual Double_t | LeftBorderX () const |
Return the x coordinate of the left border in the global coordinate system. More... | |
virtual Double_t | RightBorderX () const |
Return the x coordinate of the right border in the global coordinate system. More... | |
virtual Double_t | HalfSizeY () const |
Return the half size in y of this row segment. More... | |
virtual AliMpVMotif * | FindMotif (Double_t x, Double_t y) const |
Find the motif in the given positions. More... | |
virtual Int_t | FindMotifPositionId (Double_t x, Double_t y) const |
Find the motif position Id in the given positions. More... | |
virtual Bool_t | HasMotifPosition (Int_t motifPositionId) const |
Has the motif position with the given Id ? More... | |
virtual void | MotifCenter (Int_t motifPositionId, Double_t &x, Double_t &y) const |
Fill the coordinates of the motif specified with the given motif position Id. More... | |
virtual Double_t | GetPositionX () const |
Return the x position of the row segment centre. More... | |
virtual Double_t | GetPositionY () const |
Return the y position of the row segment centre. More... | |
virtual Double_t | GetDimensionX () const |
Return the x dimension of the row segment centre. More... | |
virtual Double_t | GetDimensionY () const |
Return the y dimension of the row segment centre. More... | |
virtual void | SetOffset (Double_t x, Double_t y) |
Calculate offset. More... | |
virtual void | SetGlobalIndices (AliMpRow *rowBefore) |
Set global indices limits. More... | |
virtual Int_t | SetIndicesToMotifPosition (Int_t i, MpPair_t indices) |
Set global indices to i-th motif position and returns next index in x. More... | |
virtual AliMpRow * | GetRow () const |
Return the row.which this row segment belongs to. More... | |
virtual Int_t | GetNofMotifs () const |
Return the number of motifs in this this row segment. More... | |
virtual AliMpVMotif * | GetMotif (Int_t) const |
Return the i-th motif of this row segment. More... | |
virtual Int_t | GetMotifPositionId (Int_t i) const |
Return the i-th motif position Id of this row segment. More... | |
![]() | |
AliMpVRowSegment () | |
virtual | ~AliMpVRowSegment () |
virtual AliMpVPadIterator * | CreateIterator () const |
Create iterator over this element. More... | |
void | Print (Option_t *opt) const |
![]() | |
AliMpVIndexed () | |
virtual | ~AliMpVIndexed () |
virtual MpPair_t | GlobalIndices (MpPair_t localIndices) const |
virtual Int_t | GlobalIx (Int_t localIx) const |
virtual Int_t | GlobalIy (Int_t localIy) const |
void | SetLowIndicesLimit (MpPair_t limit, Bool_t valid=true) |
void | SetLowIndicesLimit (Int_t ix, Int_t iy, Bool_t valid=true) |
void | SetHighIndicesLimit (MpPair_t limit, Bool_t valid=true) |
void | SetHighIndicesLimit (Int_t ix, Int_t iy, Bool_t valid=true) |
Bool_t | HasIndices (MpPair_t indices) const |
Bool_t | HasIndices (Int_t ix, Int_t iy) const |
Bool_t | HasValidIndices () const |
MpPair_t | GetLowIndicesLimit () const |
Int_t | GetLowLimitIx () const |
Int_t | GetLowLimitIy () const |
Bool_t | IsLowLimitValid () const |
MpPair_t | GetHighIndicesLimit () const |
Int_t | GetHighLimitIx () const |
Int_t | GetHighLimitIy () const |
Bool_t | IsHighLimitValid () const |
Private Member Functions | |
AliMpRowSegment (const AliMpRowSegment &right) | |
Not implemented. More... | |
AliMpRowSegment & | operator= (const AliMpRowSegment &right) |
Not implemented. More... | |
Double_t | FirstMotifCenterX () const |
Double_t | LastMotifCenterX () const |
Double_t | MotifCenterX (Int_t motifPositionId) const |
Double_t | MotifCenterY (Int_t motifPositionId) const |
Bool_t | IsInside (Double_t x, Double_t y, Bool_t warn=true) const |
Private Attributes | |
Int_t | fNofMotifs |
number of motifs More... | |
MpPair_t | fLPadOffset |
the offset in nof pads More... | |
Double_t | fOffsetX |
the x position of the centre of the first motif wrt to left border More... | |
Double_t | fOffsetY |
the y position of the centre of the first motif wrt to row center More... | |
AliMpRow * | fRow |
the row containing this segment More... | |
AliMpVMotif * | fMotif |
the motif More... | |
Int_t | fMotifPositionId |
the first motif position id More... | |
Int_t | fMotifPositionDId |
+1 if ids are increasing, -1 if decreasing More... | |
A row segment composed of the the identic motifs.
Definition at line 21 of file AliMpRowSegment.h.
AliMpRowSegment::AliMpRowSegment | ( | AliMpRow * | row, |
AliMpVMotif * | motif, | ||
Int_t | padOffsetX, | ||
Int_t | padOffsetY, | ||
Int_t | nofMotifs, | ||
Int_t | motifPositionId, | ||
Int_t | motifPositionDId | ||
) |
Standard constructor
Definition at line 50 of file AliMpRowSegment.cxx.
AliMpRowSegment::AliMpRowSegment | ( | ) |
Default constructor
Definition at line 71 of file AliMpRowSegment.cxx.
|
virtual |
Destructor
Definition at line 86 of file AliMpRowSegment.cxx.
|
private |
Not implemented.
|
virtual |
Find the motif in the given positions.
Return the motif of this row;
Implements AliMpVRowSegment.
Definition at line 196 of file AliMpRowSegment.cxx.
|
virtual |
Find the motif position Id in the given positions.
Return the motif position identified for the given geometric position.
Implements AliMpVRowSegment.
Definition at line 207 of file AliMpRowSegment.cxx.
|
private |
Return the x coordinate of the first motif center in the global coordinate system.
Definition at line 96 of file AliMpRowSegment.cxx.
Referenced by LeftBorderX().
|
virtual |
Return the x dimension of the row segment centre.
Return the halflengths of the row segment in x, y.
Implements AliMpVRowSegment.
Definition at line 268 of file AliMpRowSegment.cxx.
|
virtual |
Return the y dimension of the row segment centre.
Return the halflengths of the row segment in x, y.
Implements AliMpVRowSegment.
Definition at line 277 of file AliMpRowSegment.cxx.
|
virtual |
Return the i-th motif of this row segment.
Return the motif of this row segment.
Implements AliMpVRowSegment.
Definition at line 398 of file AliMpRowSegment.cxx.
|
virtual |
Return the i-th motif position Id of this row segment.
Return number of motifs in this this row segment.
Implements AliMpVRowSegment.
Definition at line 390 of file AliMpRowSegment.cxx.
Referenced by SetGlobalIndices(), and SetIndicesToMotifPosition().
|
virtual |
Return the number of motifs in this this row segment.
Return number of motifs in this this row segment.
Implements AliMpVRowSegment.
Definition at line 382 of file AliMpRowSegment.cxx.
Referenced by SetGlobalIndices().
|
virtual |
Return the x position of the row segment centre.
Return the x position of the row segment centre.
Implements AliMpVRowSegment.
Definition at line 252 of file AliMpRowSegment.cxx.
|
virtual |
Return the y position of the row segment centre.
Return the y position of the row segment centre.
Implements AliMpVRowSegment.
Definition at line 260 of file AliMpRowSegment.cxx.
|
virtual |
Return the row.which this row segment belongs to.
Return the row.which this row segment belongs to.
Implements AliMpVRowSegment.
Definition at line 374 of file AliMpRowSegment.cxx.
Referenced by GetDimensionY(), GetPositionY(), IsInside(), MotifCenterY(), SetGlobalIndices(), and SetIndicesToMotifPosition().
|
virtual |
Return the half size in y of this row segment.
Return the size in y of this row segment.
Implements AliMpVRowSegment.
Definition at line 188 of file AliMpRowSegment.cxx.
|
virtual |
Has the motif position with the given Id ?
Return true if the motif specified with the given position identifier is in this segment.
Implements AliMpVRowSegment.
Definition at line 223 of file AliMpRowSegment.cxx.
Referenced by MotifCenterX(), and MotifCenterY().
|
private |
Check if the position is inside some motif of this row segment.
Definition at line 147 of file AliMpRowSegment.cxx.
Referenced by FindMotif(), and FindMotifPositionId().
|
private |
Return the x coordinate of the last motif center in the global coordinate system.
Definition at line 105 of file AliMpRowSegment.cxx.
Referenced by RightBorderX().
|
virtual |
Return the x coordinate of the left border in the global coordinate system.
Return the x coordinate of the left row segment border in the global coordinate system.
Implements AliMpVRowSegment.
Definition at line 170 of file AliMpRowSegment.cxx.
Referenced by FindMotifPositionId(), GetDimensionX(), GetPositionX(), and IsInside().
|
virtual |
Fill the coordinates of the motif specified with the given motif position Id.
Return the coordinates of the motif specified with the given position identifier.
Implements AliMpVRowSegment.
Definition at line 241 of file AliMpRowSegment.cxx.
|
private |
Return the x coordinate of the motif specified with the given position identifier.
Definition at line 114 of file AliMpRowSegment.cxx.
Referenced by MotifCenter().
|
private |
Return the y coordinate of the motif specified with the given position identifier.
Definition at line 132 of file AliMpRowSegment.cxx.
Referenced by MotifCenter().
|
private |
Not implemented.
|
virtual |
Return the x coordinate of the right border in the global coordinate system.
Return the x coordinate of the right row segment border in the global coordinate system.
Implements AliMpVRowSegment.
Definition at line 179 of file AliMpRowSegment.cxx.
Referenced by GetDimensionX(), GetPositionX(), and IsInside().
|
virtual |
Set global indices limits.
Set global indices limits.
Implements AliMpVRowSegment.
Definition at line 308 of file AliMpRowSegment.cxx.
|
virtual |
Set global indices to i-th motif position and returns next index in x.
Set global indices to i-th motif position and returns next index in x.
Implements AliMpVRowSegment.
Definition at line 347 of file AliMpRowSegment.cxx.
|
virtual |
Calculate offset.
Calculate offset from given offset and stored offset in pads.
Implements AliMpVRowSegment.
Definition at line 286 of file AliMpRowSegment.cxx.
|
private |
|
private |
the motif
Definition at line 80 of file AliMpRowSegment.h.
Referenced by FindMotif(), FindMotifPositionId(), GetMotif(), HalfSizeY(), IsInside(), LastMotifCenterX(), LeftBorderX(), MotifCenterX(), RightBorderX(), and SetOffset().
|
private |
+1 if ids are increasing, -1 if decreasing
Definition at line 82 of file AliMpRowSegment.h.
Referenced by FindMotifPositionId(), GetMotifPositionId(), HasMotifPosition(), and MotifCenterX().
|
private |
the first motif position id
Definition at line 81 of file AliMpRowSegment.h.
Referenced by FindMotifPositionId(), GetMotifPositionId(), HasMotifPosition(), and MotifCenterX().
|
private |
number of motifs
Definition at line 73 of file AliMpRowSegment.h.
Referenced by GetNofMotifs(), HasMotifPosition(), and LastMotifCenterX().
|
private |
the x position of the centre of the first motif wrt to left border
Definition at line 75 of file AliMpRowSegment.h.
Referenced by FirstMotifCenterX(), LastMotifCenterX(), MotifCenterX(), and SetOffset().
|
private |
the y position of the centre of the first motif wrt to row center
Definition at line 77 of file AliMpRowSegment.h.
Referenced by HalfSizeY(), IsInside(), MotifCenterY(), and SetOffset().
|
private |
the row containing this segment
Definition at line 79 of file AliMpRowSegment.h.
Referenced by GetRow().