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 /// Pad row segment vector type
38 typedef std::vector<AliMpVPadRowSegment*> PadRowSegmentVector;
41 /// Pad row segment vector type
42 typedef TObjArray PadRowSegmentVector;
46 AliMpPadRow(AliMp::XDirection direction);
48 virtual ~AliMpPadRow();
51 AliMpVPadRowSegment* AddPadRowSegment(AliMpMotif* motif,
52 Int_t motifPositionId,
54 AliMpVPadRowSegment* FindPadRowSegment(Double_t x) const;
55 Double_t HalfSizeY() const;
59 void SetOffsetX(Double_t offsetX);
63 Int_t GetNofPadRowSegments() const;
64 AliMpVPadRowSegment* GetPadRowSegment(Int_t i) const;
65 Int_t GetNofPads() const;
69 Double_t CurrentBorderX() const;
72 AliMp::XDirection fDirection; ///< the pad row x direction
73 Int_t fID; ///< the pad row ID
74 Double_t fOffsetX; ///< the x position of the border
75 PadRowSegmentVector fSegments; ///< the pad row segments
77 ClassDef(AliMpPadRow,1) // Pad row
80 #endif //ALI_MP_PAD_ROW_H