]>
Commit | Line | Data |
---|---|---|
dc7ca31d | 1 | #ifndef ALIT0RAWREADER_H |
2 | #define ALIT0RAWREADER_H | |
3 | ||
4 | #include <TTask.h> | |
5 | #include <Riostream.h> | |
dc7ca31d | 6 | #include "AliRawReader.h" |
7 | ||
8 | class AliT0RawReader : public TTask { | |
9 | public : | |
10 | ||
e0bba6cc | 11 | AliT0RawReader(AliRawReader *rawReader) ; |
dc7ca31d | 12 | |
13 | virtual ~AliT0RawReader(); | |
e0bba6cc | 14 | AliT0RawReader(const AliT0RawReader& o) |
15 | : TTask(o) | |
16 | {} | |
17 | AliT0RawReader& operator=(const AliT0RawReader&) { return *this; } | |
dc7ca31d | 18 | |
19 | ||
20 | Bool_t Next(); //read next raw digit | |
21 | Int_t GetPosition(); | |
dc7ca31d | 22 | UInt_t GetNextWord(); |
e0bba6cc | 23 | Int_t GetData(Int_t channel, Int_t hit) {return fAllData[channel][hit];} |
dc7ca31d | 24 | |
25 | protected : | |
26 | ||
dc7ca31d | 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 | |
e0bba6cc | 31 | Int_t fAllData[110][5]; |
dc7ca31d | 32 | |
33 | ClassDef(AliT0RawReader, 0) //class for reading T0 Raw data | |
34 | }; | |
35 | ||
36 | typedef AliT0RawReader AliSTARTRawReader; // for backward compatibility | |
37 | ||
38 | #endif |