AliRoot Core  3dc7879 (3dc7879)
AliMpVPadRowSegment.h
Go to the documentation of this file.
1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2  * See cxx source for full Copyright notice */
3 
4 // $Id$
5 // $MpId: AliMpVPadRowSegment.h,v 1.7 2006/05/24 13:58:21 ivana Exp $
6 
13 
14 #ifndef ALI_MP_V_PAD_ROW_SEGMENT_H
15 #define ALI_MP_V_PAD_ROW_SEGMENT_H
16 
17 #include <TObject.h>
18 
19 class AliMpPadRow;
20 class AliMpMotif;
21 
22 class AliMpVPadRowSegment : public TObject
23 {
24  public:
26  Int_t motifPositionId, Int_t nofPads);
28  virtual ~AliMpVPadRowSegment();
29 
30  // methods
33  virtual Double_t LeftBorderX() const = 0;
36  virtual Double_t RightBorderX() const = 0;
37  virtual Double_t HalfSizeY() const;
38 
39  // get methods
40  virtual AliMpPadRow* GetPadRow() const;
41  virtual AliMpMotif* GetMotif() const;
42  virtual Int_t GetMotifPositionId() const;
44  Int_t GetNofPads() const {return fNofPads;}
45 
46  // set methods
47  void SetOffsetX(Double_t offsetX);
48 
49  protected:
51  Double_t GetOffsetX() const { return fOffsetX; }
52 
53  private:
58 
59  // data members
60  Int_t fNofPads;
61  Double_t fOffsetX;
65 
66  ClassDef(AliMpVPadRowSegment,1) // Row segment
67 };
68 
69 #endif //ALI_MP_V_PAD_ROW_SEGMENT_H
70 
A pad row composed of the pad row segments.
Definition: AliMpPadRow.h:25
virtual Double_t RightBorderX() const =0
Int_t fMotifPositionId
the motif position id
virtual Double_t LeftBorderX() const =0
Double_t GetOffsetX() const
Return the x position of the right/left border.
AliMpVPadRowSegment & operator=(const AliMpVPadRowSegment &right)
Not implemented.
Double_t fOffsetX
the x position of the right/left border
void SetOffsetX(Double_t offsetX)
Int_t fNofPads
number of pads
AliMpMotif * fMotif
the motif
virtual AliMpMotif * GetMotif() const
Int_t GetNofPads() const
Return number of pads.
A motif with its unique ID and the motif type.
Definition: AliMpMotif.h:23
virtual AliMpPadRow * GetPadRow() const
virtual Int_t GetMotifPositionId() const
virtual Double_t HalfSizeY() const
AliMpPadRow * fPadRow
the pad row containing this segment
The abstract base class for a pad row segment composed of the the identic pads.