]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RAW/AliTPCRawStream.h
Cleanup of makefiles
[u/mrichter/AliRoot.git] / RAW / AliTPCRawStream.h
index 68781aaa2cee5d43f0797f38e90eb48f0d29fbec..4226c4618c762a0361a7745feea1ca89991440d8 100644 (file)
@@ -3,46 +3,57 @@
 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
 
+/* $Id$ */
+
+///////////////////////////////////////////////////////////////////////////////
+///
+/// This class provides access to TPC digits in raw data.
+///
+///////////////////////////////////////////////////////////////////////////////
+
 #include <TObject.h>
-#include "AliRawReader.h"
 #include "AliTPCCompression.h"
 
+class AliRawReader;
+
 
 class AliTPCRawStream: public TObject {
   public :
     AliTPCRawStream(AliRawReader* rawReader);
+    AliTPCRawStream(const AliTPCRawStream& stream);
+    AliTPCRawStream& operator = (const AliTPCRawStream& stream);
     virtual ~AliTPCRawStream();
 
     virtual Bool_t   Next();
 
-    inline Int_t     GetSector() const {return fSector;};
-    inline Int_t     GetPrevSector() const {return fPrevSector;};
-    inline Bool_t    IsNewSector() const {return fSector != fPrevSector;};
-    inline Int_t     GetRow() const {return fRow;};
-    inline Int_t     GetPrevRow() const {return fPrevRow;};
-    inline Bool_t    IsNewRow() const {return (fRow != fPrevRow) || IsNewSector();};
-    inline Int_t     GetPad() const {return fPad;};
-    inline Int_t     GetPrevPad() const {return fPrevPad;};
-    inline Bool_t    IsNewPad() const {return (fPad != fPrevPad) || IsNewRow();};
-    inline Int_t     GetTime() const {return fTime;};
-    inline Int_t     GetSignal() const {return fSignal;};
+    Int_t            GetSector() const {return fSector;};
+    Int_t            GetPrevSector() const {return fPrevSector;};
+    Bool_t           IsNewSector() const {return fSector != fPrevSector;};
+    Int_t            GetRow() const {return fRow;};
+    Int_t            GetPrevRow() const {return fPrevRow;};
+    Bool_t           IsNewRow() const {return (fRow != fPrevRow) || IsNewSector();};
+    Int_t            GetPad() const {return fPad;};
+    Int_t            GetPrevPad() const {return fPrevPad;};
+    Bool_t           IsNewPad() const {return (fPad != fPrevPad) || IsNewRow();};
+    Int_t            GetTime() const {return fTime;};
+    Int_t            GetSignal() const {return fSignal;};
 
   protected :
-    UShort_t         Get10BitWord(UChar_t* buffer, Int_t position);
+    UShort_t         Get10BitWord(UChar_t* buffer, Int_t position) const;
 
     AliRawReader*    fRawReader;    // object for reading the raw data
 
     AliTPCCompression    fCompression;   // object for decompression
-    static const Int_t   kNumTables = 5; // number of (de)compression tables
+    static const Int_t   fgkNumTables = 5; // number of (de)compression tables
     static AliTPCHNode** fgRootNode;     // (de)compression tables
 
-    static const Int_t kDataMax = 10000000; // size of array for uncompressed raw data
+    static const Int_t fgkDataMax = 10000000; // size of array for uncompressed raw data
     UShort_t*        fData;         // uncompressed raw data
     Int_t            fDataSize;     // actual size of the uncompressed raw data
     Int_t            fPosition;     // current position in fData
     Int_t            fCount;        // counter of words to be read for current trailer
     Int_t            fBunchLength;  // remaining number of signal bins in the current bunch
-    static const Int_t kOffset = 1; // offset of signal
+    static const Int_t fgkOffset = 1; // offset of signal
 
     Int_t            fSector;       // index of current sector
     Int_t            fPrevSector;   // index of previous sector