]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/mapping/AliMpPadRow.h
Code for MUON Station1 (I.Hrivnacova)
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpPadRow.h
CommitLineData
5f91c9e8 1// $Id$
2// Category: sector
3//
4// Class AliMpPadRow
5// -----------------
6// Class describing a pad row composed of the pad row segments.
7//
8// Authors: David Guez, Ivana Hrivnacova; IPN Orsay
9
10#ifndef ALI_MP_PAD_ROW_H
11#define ALI_MP_PAD_ROW_H
12
13#include <TObject.h>
14
15#include "AliMpSectorTypes.h"
16
17class AliMpPadRowSegment;
18
19class AliMpPadRow : public TObject
20{
21 public:
22 AliMpPadRow();
23 virtual ~AliMpPadRow();
24
25 // methods
26 void AddPadRowSegment(AliMpPadRowSegment* padRowSegment);
27 AliMpPadRowSegment* FindPadRowSegment(Double_t x) const;
28 Double_t HalfSizeY() const;
29
30 // set methods
31 void SetID(Int_t id);
32 void SetOffsetX(Double_t offsetX);
33
34 // get methods
35 Int_t GetID() const;
36 Int_t GetNofPadRowSegments() const;
37 AliMpPadRowSegment* GetPadRowSegment(Int_t i) const;
38 Int_t GetNofPads() const;
39
40 private:
41 // data members
42 Int_t fID;
43 Double_t fOffsetX; //the x position of the right border
44 PadRowSegmentVector fSegments;
45
46 ClassDef(AliMpPadRow,1) //Pad row
47};
48
49#endif //ALI_MP_PAD_ROW_H
50