]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/mapping/AliMpMotifSpecial.h
New class - the factory for building mapping segmentations
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpMotifSpecial.h
index 8b86c81b44bb100fcfcb960b957ba2fc13952dd4..57563b08d15783aa4b023eea8ee01e4d37d67ac8 100755 (executable)
@@ -1,25 +1,47 @@
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
+
 // $Id$
-// Category: motif
-//
-// Class AliMpMotifSpecial
-// -----------------------
-// Class that defines a motif with its unique ID
-// and the motif type.
-//
-// Authors: David Guez, Ivana Hrivnacova; IPN Orsay
+// $MpId: AliMpMotifSpecial.h,v 1.7 2005/09/26 16:10:46 ivana Exp $
+
+/// \ingroup motif
+/// \class AliMpMotifSpecial
+/// \brief A special motif with varying pad dimensions
+///
+/// Authors: David Guez, Ivana Hrivnacova; IPN Orsay
 
 #ifndef ALI_MP_MOTIF_SPECIAL_H
 #define ALI_MP_MOTIF_SPECIAL_H
 
+#include "AliMpContainers.h"
+
+#ifdef WITH_STL
+#include <vector>
+#endif
+
+#ifdef WITH_ROOT
+#include <TObjArray.h>
+#include "AliMpExMap.h"
+#endif
+
 #include <TVector2.h>
 
-#include "AliMpMotifTypes.h"
 #include "AliMpVMotif.h"
 
 class TString;
 
 class AliMpMotifSpecial : public AliMpVMotif
 {
+ public:
+#ifdef WITH_STL
+  typedef std::vector< TVector2 > DimensionsMap;
+  typedef std::vector< TVector2 > DimensionsMap2;
+#endif    
+#ifdef WITH_ROOT
+  typedef AliMpExMap DimensionsMap;
+  typedef TObjArray  DimensionsMap2;
+#endif    
+
  public:
   AliMpMotifSpecial(const TString &id, AliMpMotifType *motifType);
   AliMpMotifSpecial();
@@ -42,13 +64,12 @@ class AliMpMotifSpecial : public AliMpVMotif
   virtual AliMpIntPair PadIndicesLocal(const TVector2& localPos) const;
 
  private:
   // methods
   Int_t VectorIndex(const AliMpIntPair& indices) const;
 
   // data members
-  DimensionsMap fPadDimensionsVector;  // the vector of pad dimensions
-  DimensionsMap fPadDimensionsVector2; // the vector of different pad dimensions
+  DimensionsMap   fPadDimensionsVector;  // the vector of pad dimensions
+  DimensionsMap fPadDimensionsVector2; // the vector of different pad dimensions
 
   ClassDef(AliMpMotifSpecial,1) // A motif with its ID
 };