1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
5 // $MpId: AliMpRow.h,v 1.11 2006/05/24 13:58:21 ivana Exp $
9 /// \brief A row composed of the row segments.
11 /// \author David Guez, Ivana Hrivnacova; IPN Orsay
16 #include "AliMpContainers.h"
18 #include "AliMpVIndexed.h"
19 #include "AliMpDirection.h"
30 class AliMpVRowSegment;
31 class AliMpVPadIterator;
32 class AliMpMotifPosition;
35 class AliMpRow : public AliMpVIndexed
39 typedef std::vector<AliMpVRowSegment*> RowSegmentVector;
42 typedef TList RowSegmentVector;
46 AliMpRow(Int_t id, AliMpMotifMap* motifMap);
51 void AddRowSegment(AliMpVRowSegment* rowSegment);
52 void AddRowSegmentInFront(AliMpVRowSegment* rowSegment);
53 AliMpVRowSegment* FindRowSegment(Double_t x) const;
54 Double_t LowBorderY() const;
55 Double_t UpperBorderY() const;
56 virtual AliMpVPadIterator* CreateIterator() const;
58 void SetRowSegmentOffsets(const TVector2& offset);
59 Double_t SetOffsetY(Double_t offsetY);
60 void SetMotifPositions();
61 void SetGlobalIndices(AliMpDirection constPadSizeDirection,
65 TVector2 Position() const;
66 TVector2 Dimensions() const;
70 Int_t GetNofRowSegments() const;
71 AliMpVRowSegment* GetRowSegment(Int_t i) const;
72 AliMpMotifMap* GetMotifMap() const;
75 AliMpRow(const AliMpRow& right);
76 AliMpRow& operator = (const AliMpRow& right);
79 AliMpVRowSegment* FindRowSegment(Int_t ix) const;
80 AliMpMotifPosition* FindMotifPosition(AliMpVRowSegment* segment, Int_t ix) const;
81 void SetHighIndicesLimits(Int_t iy);
82 void CheckEmpty() const;
85 UInt_t fID; ///< row ID
86 Double_t fOffsetY; ///< the y position of the centre of motifs
87 RowSegmentVector fSegments;///< row segments
88 AliMpMotifMap* fMotifMap;///< the motif map associated with its sector
90 ClassDef(AliMpRow,1) // Row
95 inline UInt_t AliMpRow::GetID() const { return fID; }
96 inline AliMpMotifMap* AliMpRow::GetMotifMap() const { return fMotifMap; }