Line data Source code
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 :
7 : /// \ingroup sector
8 : /// \class AliMpPadRow
9 : /// \brief A pad row composed of the pad row segments.
10 : ///
11 : /// \author David Guez, Ivana Hrivnacova; IPN Orsay
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 :
22 : class AliMpVPadRowSegment;
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
33 : AliMpVPadRowSegment* AddPadRowSegment(AliMpMotif* motif,
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
54 : AliMp::XDirection fDirection; ///< the pad row x direction
55 : Int_t fID; ///< the pad row ID
56 : Double_t fOffsetX; ///< the x position of the border
57 : TObjArray fSegments; ///< the pad row segments
58 :
59 18 : ClassDef(AliMpPadRow,1) // Pad row
60 : };
61 :
62 : #endif //ALI_MP_PAD_ROW_H
63 :
|