]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPCRawStream.h
Patch for the tracker
[u/mrichter/AliRoot.git] / TPC / AliTPCRawStream.h
index 722cf65b1bf96ccb09b5336ce1b73a33a83b8b64..e3141895dad95d5132c3b9a0e2b266da35dd6108 100644 (file)
@@ -16,18 +16,38 @@ class AliAltroMapping;
 
 class AliTPCRawStream: public AliAltroRawStream {
   public :
-    AliTPCRawStream(AliRawReader* rawReader);
+    AliTPCRawStream(AliRawReader* rawReader, AliAltroMapping **mapping = NULL);
     virtual ~AliTPCRawStream();
 
     virtual void             Reset();
+    virtual Bool_t           Next();
+
+    inline Int_t GetSector()     const { return fSector; }     // Provide index of current sector
+    inline Int_t GetPrevSector() const { return fPrevSector; } // Provide index of previous sector
+    inline Bool_t  IsNewSector() const {return fSector != fPrevSector;};
+    inline Int_t GetRow()        const { return fRow; }        // Provide index of current row
+    inline Int_t GetPrevRow()    const { return fPrevRow; }    // Provide index of previous row
+    inline Bool_t  IsNewRow()    const {return (fRow != fPrevRow) || IsNewSector();};
+    inline Int_t GetPad()        const { return fPad; }        // Provide index of current pad
+    inline Int_t GetPrevPad()    const { return fPrevPad; }    // Provide index of previous pad
+    inline Bool_t  IsNewPad()    const {return (fPad != fPrevPad) || IsNewRow();};
 
-  protected :
-    AliTPCRawStream(const AliTPCRawStream& stream);
     AliTPCRawStream& operator = (const AliTPCRawStream& stream);
+    AliTPCRawStream(const AliTPCRawStream& stream);
+
+  protected :
 
     virtual void ApplyAltroMapping();
 
+    Int_t            fSector;       // index of current sector
+    Int_t            fPrevSector;   // index of previous sector
+    Int_t            fRow;          // index of current row
+    Int_t            fPrevRow;      // index of previous row
+    Int_t            fPad;          // index of current pad
+    Int_t            fPrevPad;      // index of previous pad
+
     AliAltroMapping *fMapping[6];   // Pointers to ALTRO mapping
+    Bool_t           fIsMapOwner;   // does object own its mappings?
 
     ClassDef(AliTPCRawStream, 0)    // base class for reading TPC raw digits
 };