AliRoot Core  v5-06-15 (45dab64)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMpPadRow.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: AliMpPadRow.h,v 1.10 2006/05/24 13:58:21 ivana Exp $
6 
12 
13 #ifndef ALI_MP_PAD_ROW_H
14 #define ALI_MP_PAD_ROW_H
15 
16 #include <TObject.h>
17 
18 #include "AliMpXDirection.h"
19 
20 #include <TObjArray.h>
21 
23 class AliMpMotif;
24 
25 class AliMpPadRow : public TObject
26 {
27  public:
28  AliMpPadRow(AliMp::XDirection direction);
29  AliMpPadRow();
30  virtual ~AliMpPadRow();
31 
32  // methods
34  Int_t motifPositionId,
35  Int_t nofPads);
36  AliMpVPadRowSegment* FindPadRowSegment(Double_t x) const;
37  Double_t HalfSizeY() const;
38 
39  // set methods
40  void SetID(Int_t id);
41  void SetOffsetX(Double_t offsetX);
42 
43  // get methods
44  Int_t GetID() const;
45  Int_t GetNofPadRowSegments() const;
46  AliMpVPadRowSegment* GetPadRowSegment(Int_t i) const;
47  Int_t GetNofPads() const;
48 
49  private:
50  // methods
51  Double_t CurrentBorderX() const;
52 
53  // data members
55  Int_t fID;
56  Double_t fOffsetX;
58 
59  ClassDef(AliMpPadRow,1) // Pad row
60 };
61 
62 #endif //ALI_MP_PAD_ROW_H
63 
A pad row composed of the pad row segments.
Definition: AliMpPadRow.h:25
#define TObjArray
void SetOffsetX(Double_t offsetX)
AliMpVPadRowSegment * GetPadRowSegment(Int_t i) const
void SetID(Int_t id)
Double_t HalfSizeY() const
virtual ~AliMpPadRow()
Definition: AliMpPadRow.cxx:64
Int_t GetNofPadRowSegments() const
Int_t GetNofPads() const
Double_t fOffsetX
the x position of the border
Definition: AliMpPadRow.h:56
Int_t GetID() const
Int_t fID
the pad row ID
Definition: AliMpPadRow.h:55
AliMpVPadRowSegment * FindPadRowSegment(Double_t x) const
Double_t CurrentBorderX() const
Definition: AliMpPadRow.cxx:77
AliMp::XDirection fDirection
the pad row x direction
Definition: AliMpPadRow.h:54
A motif with its unique ID and the motif type.
Definition: AliMpMotif.h:23
AliMpVPadRowSegment * AddPadRowSegment(AliMpMotif *motif, Int_t motifPositionId, Int_t nofPads)
Definition: AliMpPadRow.cxx:97
TObjArray fSegments
the pad row segments
Definition: AliMpPadRow.h:57
The abstract base class for a pad row segment composed of the the identic pads.