]>
Commit | Line | Data |
---|---|---|
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: AliMpZone.h,v 1.10 2006/05/24 13:58:21 ivana Exp $ |
dee1d5f1 | 6 | |
7 | /// \ingroup sector | |
8 | /// \class AliMpZone | |
9 | /// \brief A region of pads of the same dimensions composed of subzones. | |
10 | /// | |
11 | /// The zone contains pads of the same dimensions, | |
12 | /// it is composed of the subzones. | |
13 | /// | |
13985652 | 14 | /// \author David Guez, Ivana Hrivnacova; IPN Orsay |
5f91c9e8 | 15 | |
16 | #ifndef ALI_MP_ZONE_H | |
17 | #define ALI_MP_ZONE_H | |
18 | ||
2a7ea2e6 | 19 | #include <TObject.h> |
5006ec94 | 20 | #include <TObjArray.h> |
5f91c9e8 | 21 | |
2998a151 | 22 | class AliMpSubZone; |
5006ec94 | 23 | class AliMpVMotif; |
5f91c9e8 | 24 | |
25 | class AliMpZone : public TObject | |
26 | { | |
27 | public: | |
28 | AliMpZone(Int_t id); | |
29 | AliMpZone(); | |
30 | virtual ~AliMpZone(); | |
31 | ||
32 | // methods | |
33 | void AddSubZone(AliMpSubZone* subZone); | |
34 | ||
35 | // find methods | |
36 | AliMpSubZone* FindSubZone(AliMpVMotif* motif) const; | |
37 | ||
38 | // set methods | |
6e97fbb8 | 39 | void SetPadDimensions(Double_t dx, Double_t dy); |
5f91c9e8 | 40 | |
41 | // access methods | |
42 | UInt_t GetID() const; | |
43 | Int_t GetNofSubZones() const; | |
44 | AliMpSubZone* GetSubZone(Int_t i) const; | |
6e97fbb8 | 45 | |
46 | Double_t GetPadDimensionX() const; | |
47 | Double_t GetPadDimensionY() const; | |
5f91c9e8 | 48 | |
49 | private: | |
50 | // data members | |
829425a5 | 51 | UInt_t fID; ///< ID |
2294822d | 52 | TObjArray fSubZones; ///< subzones |
6e97fbb8 | 53 | Double_t fPadDimensionX;///< pad x dimension |
54 | Double_t fPadDimensionY;///< pad y dimension | |
5f91c9e8 | 55 | |
6e97fbb8 | 56 | ClassDef(AliMpZone,2) // Zone |
5f91c9e8 | 57 | }; |
58 | ||
59 | // inline functions | |
60 | ||
f5671fc3 | 61 | /// Return ID |
5f91c9e8 | 62 | inline UInt_t AliMpZone::GetID() const |
63 | { return fID; } | |
64 | ||
6e97fbb8 | 65 | /// Return pad x dimensions |
66 | inline Double_t AliMpZone::GetPadDimensionX() const | |
67 | { return fPadDimensionX; } | |
68 | ||
69 | /// Return pad y dimensions | |
70 | inline Double_t AliMpZone::GetPadDimensionY() const | |
71 | { return fPadDimensionY; } | |
5f91c9e8 | 72 | |
73 | #endif //ALI_MP_ZONE_H |