1 #ifndef ALIT0RAWREADER_H
2 #define ALIT0RAWREADER_H
6 #include "AliRawReader.h"
8 class AliT0RawReader : public TTask {
11 AliT0RawReader(AliRawReader *rawReader) ;
13 virtual ~AliT0RawReader();
14 AliT0RawReader(const AliT0RawReader& o): TTask(o),
19 AliT0RawReader& operator=(const AliT0RawReader&) { return *this; }
22 Bool_t Next(); //read next raw digit
25 Int_t GetData(Int_t channel, Int_t hit) {return fAllData[channel][hit];}
26 // void SetNumberOfTRM(Int_t trm=2) {fNTRM=trm;}
28 enum ET0RawReaderError {
29 kIncorrectDataSize = 1,
34 kWrongChain0Header = 6,
35 kWrongChain0Trailer = 7,
36 kWrongChain1Header = 8,
37 kWrongChain1Trailer = 9,
44 AliRawReader* fRawReader; // object for reading the raw data
46 UChar_t* fData; // raw data
47 Int_t fPosition; // current (32 bit) position in fData
48 // Int_t fNTRM; //number of TRMs, 1 - testbeam; 2 - simulation
50 Int_t fAllData[110][5];
52 ClassDef(AliT0RawReader, 0) //class for reading T0 Raw data
55 typedef AliT0RawReader AliSTARTRawReader; // for backward compatibility