]> git.uio.no Git - u/mrichter/AliRoot.git/blob - T0/AliT0RawReader.h
reconstruction with lookup table
[u/mrichter/AliRoot.git] / T0 / AliT0RawReader.h
1 #ifndef ALIT0RAWREADER_H
2 #define ALIT0RAWREADER_H
3  
4 #include <TTask.h>
5 #include <Riostream.h>
6 #include "AliRawReader.h"
7  
8 class AliT0RawReader : public TTask {
9   public :
10
11   AliT0RawReader(AliRawReader *rawReader) ;
12
13   virtual  ~AliT0RawReader();
14   AliT0RawReader(const AliT0RawReader& o)
15     : TTask(o)
16   {}
17   AliT0RawReader& operator=(const AliT0RawReader&) { return *this; }
18
19
20   Bool_t  Next(); //read next raw digit
21   Int_t            GetPosition();
22   UInt_t         GetNextWord();
23   Int_t GetData(Int_t channel, Int_t hit) {return fAllData[channel][hit];}
24   
25   protected :
26
27   AliRawReader*    fRawReader;    // object for reading the raw data
28
29   UChar_t*         fData;         // raw data
30   Int_t            fPosition;     // current (32 bit) position in fData
31   Int_t fAllData[110][5];
32   
33  ClassDef(AliT0RawReader, 0) //class for reading T0 Raw data
34 };
35
36 typedef AliT0RawReader AliSTARTRawReader; // for backward compatibility
37  
38 #endif