1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
5 // $MpId: AliMpPadRow.h,v 1.10 2006/05/24 13:58:21 ivana Exp $
9 /// \brief A pad row composed of the pad row segments.
11 /// \author David Guez, Ivana Hrivnacova; IPN Orsay
13 #ifndef ALI_MP_PAD_ROW_H
14 #define ALI_MP_PAD_ROW_H
18 #include "AliMpContainers.h"
20 #include "AliMpXDirection.h"
23 #include <TObjArray.h>
30 class AliMpVPadRowSegment;
33 class AliMpPadRow : public TObject
37 typedef std::vector<AliMpVPadRowSegment*> PadRowSegmentVector;
40 typedef TObjArray PadRowSegmentVector;
44 AliMpPadRow(AliMpXDirection direction);
46 virtual ~AliMpPadRow();
49 AliMpVPadRowSegment* AddPadRowSegment(AliMpMotif* motif,
50 Int_t motifPositionId,
52 AliMpVPadRowSegment* FindPadRowSegment(Double_t x) const;
53 Double_t HalfSizeY() const;
57 void SetOffsetX(Double_t offsetX);
61 Int_t GetNofPadRowSegments() const;
62 AliMpVPadRowSegment* GetPadRowSegment(Int_t i) const;
63 Int_t GetNofPads() const;
67 Double_t CurrentBorderX() const;
70 AliMpXDirection fDirection; ///< the pad row x direction
71 Int_t fID; ///< the pad row ID
72 Double_t fOffsetX; ///< the x position of the border
73 PadRowSegmentVector fSegments; ///< the pad row segments
75 ClassDef(AliMpPadRow,1) // Pad row
78 #endif //ALI_MP_PAD_ROW_H