* See cxx source for full Copyright notice */
// $Id$
-// $MpId: AliMpZone.h,v 1.9 2006/05/23 13:07:44 ivana Exp $
+// $MpId: AliMpZone.h,v 1.10 2006/05/24 13:58:21 ivana Exp $
/// \ingroup sector
/// \class AliMpZone
/// The zone contains pads of the same dimensions,
/// it is composed of the subzones.
///
-/// Authors: David Guez, Ivana Hrivnacova; IPN Orsay
+/// \author David Guez, Ivana Hrivnacova; IPN Orsay
#ifndef ALI_MP_ZONE_H
#define ALI_MP_ZONE_H
#include <TObject.h>
-
-#include "AliMpContainers.h"
-
-#include <TVector2.h>
-#ifdef WITH_ROOT
#include <TObjArray.h>
-#endif
-
-#ifdef WITH_STL
-#include <vector>
-#endif
class AliMpSubZone;
class AliMpVMotif;
class AliMpZone : public TObject
{
- public:
-#ifdef WITH_STL
- typedef std::vector<AliMpSubZone*> SubZoneVector;
-#endif
-#ifdef WITH_ROOT
- typedef TObjArray SubZoneVector;
-#endif
-
public:
AliMpZone(Int_t id);
AliMpZone();
void AddSubZone(AliMpSubZone* subZone);
// find methods
- AliMpSubZone* FindSubZone(AliMpVMotif* motif) const;
+ AliMpSubZone* FindSubZone(const AliMpVMotif* motif) const;
// set methods
- void SetPadDimensions(const TVector2& padDimensions);
+ void SetPadDimensions(Double_t dx, Double_t dy);
// access methods
UInt_t GetID() const;
Int_t GetNofSubZones() const;
AliMpSubZone* GetSubZone(Int_t i) const;
- TVector2 GetPadDimensions() const;
+
+ Double_t GetPadDimensionX() const;
+ Double_t GetPadDimensionY() const;
private:
// data members
UInt_t fID; ///< ID
- SubZoneVector fSubZones; ///< subzones
- TVector2 fPadDimensions;///< pad dimensions
+ TObjArray fSubZones; ///< subzones
+ Double_t fPadDimensionX;///< pad x dimension
+ Double_t fPadDimensionY;///< pad y dimension
- ClassDef(AliMpZone,1) // Zone
+ ClassDef(AliMpZone,2) // Zone
};
// inline functions
-inline void AliMpZone::SetPadDimensions(const TVector2& padDimensions)
-{ fPadDimensions = padDimensions; }
-
+/// Return ID
inline UInt_t AliMpZone::GetID() const
{ return fID; }
-inline TVector2 AliMpZone::GetPadDimensions() const
-{ return fPadDimensions;}
+/// Return pad x dimensions
+inline Double_t AliMpZone::GetPadDimensionX() const
+{ return fPadDimensionX; }
+
+/// Return pad y dimensions
+inline Double_t AliMpZone::GetPadDimensionY() const
+{ return fPadDimensionY; }
#endif //ALI_MP_ZONE_H