]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/mapping/AliMpMotifReader.h
PMD module
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpMotifReader.h
index 3d46ba47f005da1d8b6778f9abf52e949c60983f..0ac800a541706fb7b70dc7d317fda9b551a81bb1 100644 (file)
@@ -2,75 +2,66 @@
  * See cxx source for full Copyright notice                               */
 
 // $Id$
-// $MpId: AliMpMotifReader.h,v 1.8 2006/05/23 13:07:42 ivana Exp $
+// $MpId: AliMpMotifReader.h,v 1.9 2006/05/24 13:58:18 ivana Exp $
 
 /// \ingroup motif
 /// \class AliMpMotifReader
 /// \brief Class that takes care of reading the motifs data.
 ///
-/// Authors: David Guez, Ivana Hrivnacova; IPN Orsay
+/// \author David Guez, Ivana Hrivnacova; IPN Orsay
 
 #ifndef ALI_MP_MOTIF_READER_H
 #define ALI_MP_MOTIF_READER_H
 
 #include <TObject.h>
 
-#include "AliMpContainers.h"
-
 #include "AliMpStationType.h"
+#include "AliMpStation12Type.h"
 #include "AliMpPlaneType.h"
-#include "AliMpIntPair.h"
-#include "AliMpContainers.h"
 
-#ifdef WITH_ROOT
 #include <TExMap.h>
-#endif    
 #include <TString.h>
-#include <TVector2.h>
 #include <Riostream.h>
 
 #include <fstream>
-#ifdef WITH_STL
-#include <map>
-#endif    
 
 class AliMpMotifMap;
 class AliMpVMotif;
 class AliMpMotifSpecial;
 class AliMpMotifType;
+class AliMpDataStreams;
 
 class AliMpMotifReader : public TObject
 {
   public:
-#ifdef WITH_STL
-    typedef std::map<std::string, std::pair<Int_t,Int_t> > PadMapType;
-    typedef PadMapType::iterator PadMapTypeIterator;
-#endif    
-#ifdef WITH_ROOT
-    typedef TExMap PadMapType;
-#endif    
-
-  public:
-    AliMpMotifReader(AliMpStationType station, AliMpPlaneType plane);
-    AliMpMotifReader();
+    AliMpMotifReader(AliMp::StationType station,
+                     AliMq::Station12Type station12,
+                     AliMp::PlaneType plane);
     virtual ~AliMpMotifReader();
   
     // methods   
-    AliMpMotifType*     BuildMotifType(const TString& motifTypeId);
-    AliMpMotifSpecial*  BuildMotifSpecial(const TString& motifID,
+    AliMpMotifType*     BuildMotifType(const AliMpDataStreams& dataStreams,
+                                       const TString& motifTypeId);
+    AliMpMotifSpecial*  BuildMotifSpecial(const AliMpDataStreams& dataStreams,
+                                          const TString& motifID,
                                           AliMpMotifType* motifType,
                                           Double_t scale=1.0);
+    TString MotifSpecialName(const TString& motifID, Double_t scale);
     
-  protected:
+  private:
+    /// Not implemented
+    AliMpMotifReader();
+    /// Not implemented
     AliMpMotifReader(const AliMpMotifReader& right);
+    /// Not implemented
     AliMpMotifReader&  operator = (const AliMpMotifReader& right);
 
-  private:
     // data members  
-    AliMpStationType  fStationType; ///< station type 
-    AliMpPlaneType    fPlaneType;   ///< plane type 
+    AliMp::StationType    fStationType;   ///< station type 
+    AliMq::Station12Type  fStation12Type; ///< station12 type 
+    AliMp::PlaneType      fPlaneType;     ///< plane type 
 
-  ClassDef(AliMpMotifReader,1)  // Data reader
+  ClassDef(AliMpMotifReader,0)  // Data reader
 };
 
 #endif //ALI_MP_MOTIF_READER_H