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.8 2005/09/26 16:12:11 ivana Exp $
9 /// \brief A row composed of the row segments.
11 /// Authors: David Guez, Ivana Hrivnacova; IPN Orsay
16 #include "AliMpContainers.h"
28 #include "AliMpVIndexed.h"
29 #include "AliMpDirection.h"
31 class AliMpVRowSegment;
32 class AliMpVPadIterator;
33 class AliMpMotifPosition;
36 class AliMpRow : public AliMpVIndexed
40 typedef std::vector<AliMpVRowSegment*> RowSegmentVector;
43 typedef TList RowSegmentVector;
47 AliMpRow(Int_t id, AliMpMotifMap* motifMap);
52 void AddRowSegment(AliMpVRowSegment* rowSegment);
53 void AddRowSegmentInFront(AliMpVRowSegment* rowSegment);
54 AliMpVRowSegment* FindRowSegment(Double_t x) const;
55 Double_t LowBorderY() const;
56 Double_t UpperBorderY() const;
57 virtual AliMpVPadIterator* CreateIterator() const;
59 void SetRowSegmentOffsets(const TVector2& offset);
60 Double_t SetOffsetY(Double_t offsetY);
61 void SetMotifPositions();
62 void SetGlobalIndices(AliMpDirection constPadSizeDirection,
66 TVector2 Position() const;
67 TVector2 Dimensions() const;
71 Int_t GetNofRowSegments() const;
72 AliMpVRowSegment* GetRowSegment(Int_t i) const;
73 AliMpMotifMap* GetMotifMap() const;
76 AliMpRow(const AliMpRow& right);
77 AliMpRow& operator = (const AliMpRow& right);
81 AliMpVRowSegment* FindRowSegment(Int_t ix) const;
82 AliMpMotifPosition* FindMotifPosition(AliMpVRowSegment* segment, Int_t ix) const;
83 void SetHighIndicesLimits(Int_t iy);
84 void CheckEmpty() const;
88 Double_t fOffsetY; // the y position of the centre of motifs
89 RowSegmentVector fSegments;// row segments
90 AliMpMotifMap* fMotifMap;// the motif map associated with its sector
92 ClassDef(AliMpRow,1) //Row
97 inline UInt_t AliMpRow::GetID() const { return fID; }
98 inline AliMpMotifMap* AliMpRow::GetMotifMap() const { return fMotifMap; }
100 #endif //ALI_MP_ROW_H