]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSRawStream.cxx
Error messages stored in the global raw-reader error log (Cvetan, Chiara)
[u/mrichter/AliRoot.git] / ITS / AliITSRawStream.cxx
index ced2513a412127362557f75b83a1e9e47802d41a..55aceec92b41e613acb9ad7327af5536359e28c5 100644 (file)
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
+/* $Id$ */
+
 ///////////////////////////////////////////////////////////////////////////////
-//
-// This is a base class for reading ITS raw data files and providing
-// information about digits
-//
+///
+/// This is a base class for providing access to ITS digits in raw data.
+///
+/// Derived class should implement the Next method.
+///
+/// It loops over all ITS 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.
+///
 ///////////////////////////////////////////////////////////////////////////////
 
 #include "AliITSRawStream.h"
 ClassImp(AliITSRawStream)
 
 
-AliITSRawStream::AliITSRawStream()
+AliITSRawStream::AliITSRawStream(AliRawReader* rawReader):
+fRawReader(rawReader),
+fModuleID(-1),
+fPrevModuleID(-1),
+fCoord1(-1),
+fCoord2(-1),
+fSignal(-1)
 {
 // create an object to read ITS raw digits
 
-  fModuleID = fPrevModuleID = fCoord1 = fCoord2 = fSignal = -1;
 }
+
+AliITSRawStream::AliITSRawStream(const AliITSRawStream& stream) :
+  TObject(stream),
+fRawReader(stream.fRawReader),
+fModuleID(stream.fModuleID),
+fPrevModuleID(stream.fPrevModuleID),
+fCoord1(stream.fCoord1),
+fCoord2(stream.fCoord2),
+fSignal(stream.fSignal)
+{
+  //copy constructor
+}
+
+AliITSRawStream& AliITSRawStream::operator = (const AliITSRawStream& 
+                                             /* stream */)
+{
+  Fatal("operator =", "assignment operator not implemented");
+  return *this;
+}
+