]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/mapping/AliMpZone.h
Option for customized binning (as in AliUEHist), EventMixing binning now derived...
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpZone.h
index cc8be9729b697310f3968dbe4ca4a6837e5d0a1c..d470b25b6e95ed39e75a3a1ba483462f80a6303a 100755 (executable)
@@ -2,7 +2,7 @@
  * 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();
@@ -51,35 +33,41 @@ class AliMpZone : public TObject
     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