]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSRawStream.cxx
Using a conservative 3% estimate for the K0s signal extraction systematics. Using...
[u/mrichter/AliRoot.git] / ITS / AliITSRawStream.cxx
index ced2513a412127362557f75b83a1e9e47802d41a..3a9e3741b13e98ededebcdfa6c88d78d85b242c0 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),
+fCompletedModule(0),
+fCompletedDDL(0)
 {
 // 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),
+fCompletedModule(stream.fCompletedModule),
+fCompletedDDL(stream.fCompletedDDL)
+{
+  //copy constructor
+}
+
+AliITSRawStream& AliITSRawStream::operator = (const AliITSRawStream& 
+                                             /* stream */)
+{
+  Fatal("operator =", "assignment operator not implemented");
+  return *this;
+}
+