]>
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$ |
dee1d5f1 | 5 | // $MpId: AliMpZone.h,v 1.6 2005/08/26 15:43:36 ivana Exp $ |
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 | /// | |
14 | /// Authors: David Guez, Ivana Hrivnacova; IPN Orsay | |
5f91c9e8 | 15 | |
16 | #ifndef ALI_MP_ZONE_H | |
17 | #define ALI_MP_ZONE_H | |
18 | ||
19 | #include <TObject.h> | |
5f91c9e8 | 20 | #include <TVector2.h> |
21 | ||
22 | #include "AliMpSectorTypes.h" | |
2998a151 | 23 | |
24 | class AliMpSubZone; | |
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 | |
50 | UInt_t fID; // ID | |
51 | SubZoneVector fSubZones; // subzones | |
52 | TVector2 fPadDimensions;// pad dimensions | |
53 | ||
54 | ClassDef(AliMpZone,1) //Zone | |
55 | }; | |
56 | ||
57 | // inline functions | |
58 | ||
59 | inline void AliMpZone::SetPadDimensions(const TVector2& padDimensions) | |
60 | { fPadDimensions = padDimensions; } | |
61 | ||
62 | inline UInt_t AliMpZone::GetID() const | |
63 | { return fID; } | |
64 | ||
65 | inline TVector2 AliMpZone::GetPadDimensions() const | |
66 | { return fPadDimensions;} | |
67 | ||
68 | #endif //ALI_MP_ZONE_H |