2 // ---------------------------------------------------------------
5 // Class AliMpPadRowSegment
6 // ------------------------
7 // Class describing a pad row segment composed of the
10 // Authors: David Guez, Ivana Hrivnacova; IPN Orsay
12 #ifndef M_PAD_ROW_SEGMENT_H
13 #define M_PAD_ROW_SEGMENT_H
21 class AliMpPadRowSegment : public TObject
24 AliMpPadRowSegment(AliMpPadRow* padRow, AliMpMotif* motif, Int_t motifPositionId,
27 virtual ~AliMpPadRowSegment();
30 virtual Double_t LeftBorderX() const;
31 virtual Double_t RightBorderX() const;
32 virtual Double_t HalfSizeY() const;
35 virtual AliMpPadRow* GetPadRow() const;
36 virtual AliMpMotif* GetMotif() const;
37 virtual Int_t GetMotifPositionId() const;
38 Int_t GetNofPads() const {return fNofPads;}
41 void SetOffsetX(Double_t offsetX);
45 Double_t FirstPadCenterX() const;
46 Double_t LastPadCenterX() const;
47 Double_t FirstPadBorderX() const;
48 Double_t LastPadBorderX() const;
51 Int_t fNofPads; //number of pads
52 Double_t fOffsetX; //the x position of the right border
53 AliMpPadRow* fPadRow; //the pad row containing this segment
54 AliMpMotif* fMotif; //the motif
55 Int_t fMotifPositionId; // the motif position id
57 ClassDef(AliMpPadRowSegment,1) //Row segment
60 #endif //M_PAD_ROW_SEGMENT_H