]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/mapping/AliMpPadRow.h
In Mapping/macros:
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpPadRow.h
CommitLineData
dee1d5f1 1/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
3
5f91c9e8 4// $Id$
13985652 5// $MpId: AliMpPadRow.h,v 1.10 2006/05/24 13:58:21 ivana Exp $
dee1d5f1 6
7/// \ingroup sector
8/// \class AliMpPadRow
9/// \brief A pad row composed of the pad row segments.
10///
13985652 11/// \author David Guez, Ivana Hrivnacova; IPN Orsay
5f91c9e8 12
13#ifndef ALI_MP_PAD_ROW_H
14#define ALI_MP_PAD_ROW_H
15
2a7ea2e6 16#include <TObject.h>
17
2a7ea2e6 18#include "AliMpXDirection.h"
5006ec94 19
5006ec94 20#include <TObjArray.h>
5f91c9e8 21
f0e4d56c 22class AliMpVPadRowSegment;
23class AliMpMotif;
5f91c9e8 24
25class AliMpPadRow : public TObject
26{
27 public:
cddd101e 28 AliMpPadRow(AliMp::XDirection direction);
5f91c9e8 29 AliMpPadRow();
30 virtual ~AliMpPadRow();
31
32 // methods
f0e4d56c 33 AliMpVPadRowSegment* AddPadRowSegment(AliMpMotif* motif,
34 Int_t motifPositionId,
35 Int_t nofPads);
36 AliMpVPadRowSegment* FindPadRowSegment(Double_t x) const;
5f91c9e8 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;
f0e4d56c 46 AliMpVPadRowSegment* GetPadRowSegment(Int_t i) const;
5f91c9e8 47 Int_t GetNofPads() const;
48
49 private:
f0e4d56c 50 // methods
51 Double_t CurrentBorderX() const;
52
5f91c9e8 53 // data members
cddd101e 54 AliMp::XDirection fDirection; ///< the pad row x direction
829425a5 55 Int_t fID; ///< the pad row ID
56 Double_t fOffsetX; ///< the x position of the border
2294822d 57 TObjArray fSegments; ///< the pad row segments
5f91c9e8 58
829425a5 59 ClassDef(AliMpPadRow,1) // Pad row
5f91c9e8 60};
61
62#endif //ALI_MP_PAD_ROW_H
63