]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDrawStreamBase.cxx
AliACORDEQAChecker::Check fixed
[u/mrichter/AliRoot.git] / TRD / AliTRDrawStreamBase.cxx
index 835f27d177a933a565be58cd342b2d1cf6d9724b..e28b6c7ad9e424173f40c87939afe6ae2212d64d 100644 (file)
 //                                                                           //
 ///////////////////////////////////////////////////////////////////////////////
 
-#include "AliRawReader.h"
-
-#include "AliTRDRawStream.h"
-#include "AliTRDRawStreamV2.h"
-#include "AliTRDrawStreamTB.h"
+#include "AliTRDrawStream.h"
+#include "AliTRDrawFastStream.h"
 
 #include "AliTRDrawStreamBase.h"
 
 //--------------------------------------------------------
 ClassImp(AliTRDrawStreamBase)
 
-Int_t AliTRDrawStreamBase::fgRawStreamVersion = AliTRDrawStreamBase::kTRDsimStream;
+Int_t AliTRDrawStreamBase::fgRawStreamVersion = AliTRDrawStreamBase::kTRDrealStream;
 
 //_____________________________________________________________________________
 AliTRDrawStreamBase::AliTRDrawStreamBase()
@@ -99,19 +96,15 @@ AliTRDrawStreamBase *AliTRDrawStreamBase::GetRawStream()
   // Returns the selected raw stream implementation
   //
 
-  if (fgRawStreamVersion == kTRDoldStream)
-    return new AliTRDRawStream();
-
   if (fgRawStreamVersion == kTRDrealStream)
-    return new AliTRDrawStreamTB();
+    return new AliTRDrawStream();
 
   if (fgRawStreamVersion == kTRDsimStream)
-    {
-      AliTRDRawStreamV2 *rstream = new AliTRDRawStreamV2();
-      rstream->Init();
-      return rstream;
-    }
+    return new AliTRDrawStream();
   
+  if (fgRawStreamVersion == kTRDfastStream)
+    return new AliTRDrawFastStream();
+
   return new AliTRDrawStreamBase;
 }
 
@@ -122,18 +115,16 @@ AliTRDrawStreamBase *AliTRDrawStreamBase::GetRawStream(AliRawReader *reader)
   // Returns the selected raw stream implementation
   //
 
-  if (fgRawStreamVersion == kTRDoldStream)
-    return new AliTRDRawStream(reader);
-
   if (fgRawStreamVersion == kTRDrealStream)
-    return new AliTRDrawStreamTB(reader);
+    return new AliTRDrawStream(reader);
 
   if (fgRawStreamVersion == kTRDsimStream)
-    {
-      AliTRDRawStreamV2 *rstream = new AliTRDRawStreamV2(reader);
-      rstream->Init();
-      return rstream;
-    }
+    return new AliTRDrawStream(reader);
+
+
+  if (fgRawStreamVersion == kTRDfastStream){
+    return new AliTRDrawFastStream(reader);}
+
   return new AliTRDrawStreamBase;
 }
 
@@ -155,7 +146,8 @@ void AliTRDrawStreamBase::SetRawStreamVersion(const char *opt)
   if (strstr(opt, "real" ) != 0 || strstr(opt, "REAL") != 0) 
     fgRawStreamVersion = kTRDrealStream; 
 
-  if (strstr(opt, "old" ) != 0 || strstr(opt, "OLD") != 0) 
-    fgRawStreamVersion = kTRDoldStream; 
+  if (strstr(opt, "fast" ) != 0 || strstr(opt, "FAST") != 0)
+    fgRawStreamVersion = kTRDfastStream;
       
 }
+