]>
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> |
2a7ea2e6 | 20 | #include <TVector2.h> |
5006ec94 | 21 | #include <TObjArray.h> |
5f91c9e8 | 22 | |
2998a151 | 23 | class AliMpSubZone; |
5006ec94 | 24 | class AliMpVMotif; |
5f91c9e8 | 25 | |
26 | class AliMpZone : public TObject | |
27 | { | |
28 | public: | |
29 | AliMpZone(Int_t id); | |
30 | AliMpZone(); | |
31 | virtual ~AliMpZone(); | |
32 | ||
33 | // methods | |
34 | void AddSubZone(AliMpSubZone* subZone); | |
35 | ||
36 | // find methods | |
37 | AliMpSubZone* FindSubZone(AliMpVMotif* motif) const; | |
38 | ||
39 | // set methods | |
40 | void SetPadDimensions(const TVector2& padDimensions); | |
41 | ||
42 | // access methods | |
43 | UInt_t GetID() const; | |
44 | Int_t GetNofSubZones() const; | |
45 | AliMpSubZone* GetSubZone(Int_t i) const; | |
46 | TVector2 GetPadDimensions() const; | |
47 | ||
48 | private: | |
49 | // data members | |
829425a5 | 50 | UInt_t fID; ///< ID |
2294822d | 51 | TObjArray fSubZones; ///< subzones |
829425a5 | 52 | TVector2 fPadDimensions;///< pad dimensions |
5f91c9e8 | 53 | |
829425a5 | 54 | ClassDef(AliMpZone,1) // Zone |
5f91c9e8 | 55 | }; |
56 | ||
57 | // inline functions | |
58 | ||
f5671fc3 | 59 | /// Set pad dimensions |
5f91c9e8 | 60 | inline void AliMpZone::SetPadDimensions(const TVector2& padDimensions) |
61 | { fPadDimensions = padDimensions; } | |
62 | ||
f5671fc3 | 63 | /// Return ID |
5f91c9e8 | 64 | inline UInt_t AliMpZone::GetID() const |
65 | { return fID; } | |
66 | ||
f5671fc3 | 67 | /// Return pad dimensions |
5f91c9e8 | 68 | inline TVector2 AliMpZone::GetPadDimensions() const |
69 | { return fPadDimensions;} | |
70 | ||
71 | #endif //ALI_MP_ZONE_H |