1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
5 // $MpId: AliMpZone.h,v 1.10 2006/05/24 13:58:21 ivana Exp $
9 /// \brief A region of pads of the same dimensions composed of subzones.
11 /// The zone contains pads of the same dimensions,
12 /// it is composed of the subzones.
14 /// \author David Guez, Ivana Hrivnacova; IPN Orsay
21 #include "AliMpContainers.h"
25 #include <TObjArray.h>
35 class AliMpZone : public TObject
39 /// Sub zone vector type
40 typedef std::vector<AliMpSubZone*> SubZoneVector;
43 /// Sub zone vector type
44 typedef TObjArray SubZoneVector;
53 void AddSubZone(AliMpSubZone* subZone);
56 AliMpSubZone* FindSubZone(AliMpVMotif* motif) const;
59 void SetPadDimensions(const TVector2& padDimensions);
63 Int_t GetNofSubZones() const;
64 AliMpSubZone* GetSubZone(Int_t i) const;
65 TVector2 GetPadDimensions() const;
70 SubZoneVector fSubZones; ///< subzones
71 TVector2 fPadDimensions;///< pad dimensions
73 ClassDef(AliMpZone,1) // Zone
78 /// Set pad dimensions
79 inline void AliMpZone::SetPadDimensions(const TVector2& padDimensions)
80 { fPadDimensions = padDimensions; }
83 inline UInt_t AliMpZone::GetID() const
86 /// Return pad dimensions
87 inline TVector2 AliMpZone::GetPadDimensions() const
88 { return fPadDimensions;}
90 #endif //ALI_MP_ZONE_H