2 // ---------------------------------------------------------------
5 // Class AliMpVPadRowSegment
6 // -------------------------
7 // The abstract base class for a pad row segment composed of the
10 // Authors: David Guez, Ivana Hrivnacova; IPN Orsay
12 #ifndef ALI_MP_V_PAD_ROW_SEGMENT_H
13 #define ALI_MP_V_PAD_ROW_SEGMENT_H
20 class AliMpVPadRowSegment : public TObject
23 AliMpVPadRowSegment(AliMpPadRow* padRow, AliMpMotif* motif,
24 Int_t motifPositionId, Int_t nofPads);
25 AliMpVPadRowSegment();
26 virtual ~AliMpVPadRowSegment();
29 virtual Double_t LeftBorderX() const = 0;
30 virtual Double_t RightBorderX() const = 0;
31 virtual Double_t HalfSizeY() const;
34 virtual AliMpPadRow* GetPadRow() const;
35 virtual AliMpMotif* GetMotif() const;
36 virtual Int_t GetMotifPositionId() const;
37 Int_t GetNofPads() const {return fNofPads;}
40 void SetOffsetX(Double_t offsetX);
43 AliMpVPadRowSegment(const AliMpVPadRowSegment& right);
44 AliMpVPadRowSegment& operator = (const AliMpVPadRowSegment& right);
46 Double_t GetOffsetX() const { return fOffsetX; }
50 Int_t fNofPads; //number of pads
51 Double_t fOffsetX; //the x position of the right/left border
52 AliMpPadRow* fPadRow; //the pad row containing this segment
53 AliMpMotif* fMotif; //the motif
54 Int_t fMotifPositionId; // the motif position id
56 ClassDef(AliMpVPadRowSegment,1) //Row segment
59 #endif //ALI_MP_V_PAD_ROW_SEGMENT_H