]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDrawStreamBase.cxx
- put baseline subtraction into the clusterizer and remove all other
[u/mrichter/AliRoot.git] / TRD / AliTRDrawStreamBase.cxx
index ced5191891cf40c79589b474a1c658563a7a5044..e28b6c7ad9e424173f40c87939afe6ae2212d64d 100644 (file)
-/**************************************************************************\r
- * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *\r
- *                                                                        *\r
- * Author: The ALICE Off-line Project.                                    *\r
- * Contributors are mentioned in the code where appropriate.              *\r
- *                                                                        *\r
- * Permission to use, copy, modify and distribute this software and its   *\r
- * documentation strictly for non-commercial purposes is hereby granted   *\r
- * without fee, provided that the above copyright notice appears in all   *\r
- * copies and that both the copyright notice and this permission notice   *\r
- * appear in the supporting documentation. The authors make no claims     *\r
- * about the suitability of this software for any purpose. It is          *\r
- * provided "as is" without express or implied warranty.                  *\r
- **************************************************************************/\r
-\r
-/* $Id: AliTRDrawStreamBase.cxx 23387 2008-01-17 17:25:16Z cblume $ */\r
-\r
-///////////////////////////////////////////////////////////////////////////////\r
-//                                                                           //\r
-// This class defines access to TRD digits in raw data.                      //\r
-//                                                                           //\r
-// It loops over all TRD digits in the raw data given by the AliRawReader.   //\r
-// The Next method goes to the next digit. If there are no digits left       //\r
-// it returns kFALSE.                                                        //\r
-// Several getters provide information about the current digit.              //\r
-//                                                                           //\r
-// Author: M. Ploskon (ploskon@ikf.uni-frankfurt.de)                         //\r
-//                                                                           //\r
-///////////////////////////////////////////////////////////////////////////////\r
-\r
-#include "AliTRDrawStream.h"\r
-#include "AliTRDrawFastStream.h"\r
-\r
-#include "AliTRDrawStreamBase.h"\r
-\r
-//--------------------------------------------------------\r
-ClassImp(AliTRDrawStreamBase)\r
-\r
-Int_t AliTRDrawStreamBase::fgRawStreamVersion = AliTRDrawStreamBase::kTRDrealStream;\r
-Int_t AliTRDrawStreamBase::fgCommonAdditive = 0;\r
-\r
-//_____________________________________________________________________________\r
-AliTRDrawStreamBase::AliTRDrawStreamBase()\r
-  : TObject()\r
-{\r
-  //\r
-  // this is just for API\r
-  //\r
-  ;\r
-}\r
-\r
-//_____________________________________________________________________________\r
-AliTRDrawStreamBase::AliTRDrawStreamBase(AliRawReader */*rawReader*/)\r
-  : TObject()\r
-{\r
-  //\r
-  // this is just for API\r
-  //\r
-  ;\r
-}\r
-\r
-//_____________________________________________________________________________\r
-AliTRDrawStreamBase::AliTRDrawStreamBase(const AliTRDrawStreamBase& /*st*/)\r
-  : TObject()\r
-{\r
-  //\r
-  // copy\r
-  //\r
-  TRD_NOIMP();\r
-  ;\r
-}\r
-\r
-//_____________________________________________________________________________\r
-AliTRDrawStreamBase::~AliTRDrawStreamBase()\r
-{\r
-  //\r
-  // destructor\r
-  //\r
-  ;\r
-}\r
-\r
-//_____________________________________________________________________________\r
-AliTRDrawStreamBase &\r
-AliTRDrawStreamBase::operator=(const AliTRDrawStreamBase &)\r
-{\r
-  //\r
-  // we are not using this functionality\r
-  //\r
-  TRD_NOIMP();\r
-  return *this;\r
-}\r
-\r
-//_____________________________________________________________________________\r
-AliTRDrawStreamBase *AliTRDrawStreamBase::GetRawStream()\r
-{\r
-  //\r
-  // Returns the selected raw stream implementation\r
-  //\r
-\r
-  if (fgRawStreamVersion == kTRDrealStream)\r
-    return new AliTRDrawStream();\r
-\r
-  if (fgRawStreamVersion == kTRDsimStream)\r
-    return new AliTRDrawStream();\r
-  \r
-  if (fgRawStreamVersion == kTRDfastStream)\r
-    return new AliTRDrawFastStream();\r
-\r
-  return new AliTRDrawStreamBase;\r
-}\r
-\r
-//_____________________________________________________________________________\r
-AliTRDrawStreamBase *AliTRDrawStreamBase::GetRawStream(AliRawReader *reader)\r
-{\r
-  //\r
-  // Returns the selected raw stream implementation\r
-  //\r
-\r
-  if (fgRawStreamVersion == kTRDrealStream)\r
-    return new AliTRDrawStream(reader);\r
-\r
-  if (fgRawStreamVersion == kTRDsimStream)\r
-    return new AliTRDrawStream(reader);\r
-\r
-\r
-  if (fgRawStreamVersion == kTRDfastStream){\r
-    return new AliTRDrawFastStream(reader);}\r
-\r
-  return new AliTRDrawStreamBase;\r
-}\r
-\r
-//_____________________________________________________________________________\r
-void AliTRDrawStreamBase::SetRawStreamVersion(const char *opt) \r
-{ \r
-  //\r
-  // Sets the raw stream version\r
-  //\r
-\r
-  fgRawStreamVersion = 0; \r
-\r
-  if (strstr(opt, "sim" ) != 0 || strstr(opt, "SIM") != 0) \r
-    fgRawStreamVersion = kTRDsimStream; \r
-\r
-  if (strstr(opt, "tb" ) != 0 || strstr(opt, "TB") != 0) \r
-    fgRawStreamVersion = kTRDrealStream; \r
-\r
-  if (strstr(opt, "real" ) != 0 || strstr(opt, "REAL") != 0) \r
-    fgRawStreamVersion = kTRDrealStream; \r
-\r
-  if (strstr(opt, "fast" ) != 0 || strstr(opt, "FAST") != 0)\r
-    fgRawStreamVersion = kTRDfastStream;\r
-      \r
-}\r
-\r
+/**************************************************************************
+ * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ *                                                                        *
+ * Author: The ALICE Off-line Project.                                    *
+ * Contributors are mentioned in the code where appropriate.              *
+ *                                                                        *
+ * Permission to use, copy, modify and distribute this software and its   *
+ * documentation strictly for non-commercial purposes is hereby granted   *
+ * without fee, provided that the above copyright notice appears in all   *
+ * copies and that both the copyright notice and this permission notice   *
+ * appear in the supporting documentation. The authors make no claims     *
+ * about the suitability of this software for any purpose. It is          *
+ * provided "as is" without express or implied warranty.                  *
+ **************************************************************************/
+
+/* $Id: AliTRDrawStreamBase.cxx 23387 2008-01-17 17:25:16Z cblume $ */
+
+///////////////////////////////////////////////////////////////////////////////
+//                                                                           //
+// This class defines access to TRD digits in raw data.                      //
+//                                                                           //
+// It loops over all TRD digits in the raw data given by the AliRawReader.   //
+// The Next method goes to the next digit. If there are no digits left       //
+// it returns kFALSE.                                                        //
+// Several getters provide information about the current digit.              //
+//                                                                           //
+// Author: M. Ploskon (ploskon@ikf.uni-frankfurt.de)                         //
+//                                                                           //
+///////////////////////////////////////////////////////////////////////////////
+
+#include "AliTRDrawStream.h"
+#include "AliTRDrawFastStream.h"
+
+#include "AliTRDrawStreamBase.h"
+
+//--------------------------------------------------------
+ClassImp(AliTRDrawStreamBase)
+
+Int_t AliTRDrawStreamBase::fgRawStreamVersion = AliTRDrawStreamBase::kTRDrealStream;
+
+//_____________________________________________________________________________
+AliTRDrawStreamBase::AliTRDrawStreamBase()
+  : TObject()
+{
+  //
+  // this is just for API
+  //
+  ;
+}
+
+//_____________________________________________________________________________
+AliTRDrawStreamBase::AliTRDrawStreamBase(AliRawReader */*rawReader*/)
+  : TObject()
+{
+  //
+  // this is just for API
+  //
+  ;
+}
+
+//_____________________________________________________________________________
+AliTRDrawStreamBase::AliTRDrawStreamBase(const AliTRDrawStreamBase& /*st*/)
+  : TObject()
+{
+  //
+  // copy
+  //
+  TRD_NOIMP();
+  ;
+}
+
+//_____________________________________________________________________________
+AliTRDrawStreamBase::~AliTRDrawStreamBase()
+{
+  //
+  // destructor
+  //
+  ;
+}
+
+//_____________________________________________________________________________
+AliTRDrawStreamBase &
+AliTRDrawStreamBase::operator=(const AliTRDrawStreamBase &)
+{
+  //
+  // we are not using this functionality
+  //
+  TRD_NOIMP();
+  return *this;
+}
+
+//_____________________________________________________________________________
+AliTRDrawStreamBase *AliTRDrawStreamBase::GetRawStream()
+{
+  //
+  // Returns the selected raw stream implementation
+  //
+
+  if (fgRawStreamVersion == kTRDrealStream)
+    return new AliTRDrawStream();
+
+  if (fgRawStreamVersion == kTRDsimStream)
+    return new AliTRDrawStream();
+  
+  if (fgRawStreamVersion == kTRDfastStream)
+    return new AliTRDrawFastStream();
+
+  return new AliTRDrawStreamBase;
+}
+
+//_____________________________________________________________________________
+AliTRDrawStreamBase *AliTRDrawStreamBase::GetRawStream(AliRawReader *reader)
+{
+  //
+  // Returns the selected raw stream implementation
+  //
+
+  if (fgRawStreamVersion == kTRDrealStream)
+    return new AliTRDrawStream(reader);
+
+  if (fgRawStreamVersion == kTRDsimStream)
+    return new AliTRDrawStream(reader);
+
+
+  if (fgRawStreamVersion == kTRDfastStream){
+    return new AliTRDrawFastStream(reader);}
+
+  return new AliTRDrawStreamBase;
+}
+
+//_____________________________________________________________________________
+void AliTRDrawStreamBase::SetRawStreamVersion(const char *opt) 
+{ 
+  //
+  // Sets the raw stream version
+  //
+
+  fgRawStreamVersion = 0; 
+
+  if (strstr(opt, "sim" ) != 0 || strstr(opt, "SIM") != 0) 
+    fgRawStreamVersion = kTRDsimStream; 
+
+  if (strstr(opt, "tb" ) != 0 || strstr(opt, "TB") != 0) 
+    fgRawStreamVersion = kTRDrealStream; 
+
+  if (strstr(opt, "real" ) != 0 || strstr(opt, "REAL") != 0) 
+    fgRawStreamVersion = kTRDrealStream; 
+
+  if (strstr(opt, "fast" ) != 0 || strstr(opt, "FAST") != 0)
+    fgRawStreamVersion = kTRDfastStream;
+      
+}
+