1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
5 // $MpId: AliMpVRowSegment.h,v 1.9 2006/05/24 13:58:21 ivana Exp $
8 /// \class AliMpVRowSegment
9 /// \brief An interface for a row segment.
11 /// \author David Guez, Ivana Hrivnacova; IPN Orsay
13 #ifndef ALI_MP_V_ROW_SEGMENT_H
14 #define ALI_MP_V_ROW_SEGMENT_H
16 #include "AliMpVIndexed.h"
21 class AliMpVRowSegment : public AliMpVIndexed
25 virtual ~AliMpVRowSegment();
31 /// Return the x coordinate of the left border in the global coordinate system.
32 virtual Double_t LeftBorderX() const = 0;
33 /// Return the x coordinate of the right border in the global coordinate system.
34 virtual Double_t RightBorderX() const = 0;
35 /// Return the half size in y of this row segment.
36 virtual Double_t HalfSizeY() const = 0;
37 virtual AliMpVPadIterator* CreateIterator() const;
43 /// Find the motif in the given positions
44 virtual AliMpVMotif* FindMotif(Double_t x, Double_t y) const = 0;
45 /// Find the motif position Id in the given positions
46 virtual Int_t FindMotifPositionId(Double_t x, Double_t y) const = 0;
47 /// Has the motif position with the given Id ?
48 virtual Bool_t HasMotifPosition(Int_t motifPositionId) const = 0;
50 /// Fill the coordinates of the motif specified with the given motif position Id
51 virtual void MotifCenter(Int_t motifPositionId,
52 Double_t& x, Double_t& y) const = 0;
58 /// Return the x position of the row segment centre.
59 virtual Double_t GetPositionX() const = 0;
60 /// Return the y position of the row segment centre.
61 virtual Double_t GetPositionY() const = 0;
63 /// Return the x dimension of the row segment centre.
64 virtual Double_t GetDimensionX() const = 0;
65 /// Return the y dimension of the row segment centre.
66 virtual Double_t GetDimensionY() const = 0;
73 virtual void SetOffset(Double_t x, Double_t y) = 0;
74 /// Set global indices limits.
75 virtual void SetGlobalIndices(AliMpRow* rowBefore) = 0;
76 /// Set global indices to i-th motif position and returns next index in x.
77 virtual Int_t SetIndicesToMotifPosition(Int_t i, MpPair_t indices) = 0;
83 /// Return the row.which this row segment belongs to
84 virtual AliMpRow* GetRow() const = 0;
85 /// Return the number of motifs in this this row segment.
86 virtual Int_t GetNofMotifs() const = 0;
87 /// Return the i-th motif of this row segment.
88 virtual AliMpVMotif* GetMotif(Int_t i) const = 0;
89 /// Return the i-th motif position Id of this row segment.
90 virtual Int_t GetMotifPositionId(Int_t i) const = 0;
92 ClassDef(AliMpVRowSegment,1) //Row segment
95 #endif //ALI_MP_V_ROW_SEGMENT_H