1 #ifndef ALIT0RAWREADER_H
2 #define ALIT0RAWREADER_H
6 #include "AliRawReader.h"
7 #include "AliT0Parameters.h"
9 class AliT0RawReader : public TTask {
12 AliT0RawReader(AliRawReader *rawReader) ;
14 virtual ~AliT0RawReader();
15 AliT0RawReader(const AliT0RawReader& o): TTask(o),
23 AliT0RawReader& operator=(const AliT0RawReader&) { return *this; }
26 Bool_t Next(); //read next raw digit
29 Int_t GetData(Int_t channel, Int_t hit) {return fAllData[channel][hit];}
30 // void SetNumberOfTRM(Int_t trm=2) {fNTRM=trm;}
32 enum ET0RawReaderError {
33 kIncorrectDataSize = 1,
38 kWrongChain0Header = 6,
39 kWrongChain0Trailer = 7,
40 kWrongChain1Header = 8,
41 kWrongChain1Trailer = 9,
45 void SetOnlineMode(Bool_t on=kFALSE) {fIsOnline=on;}
46 Bool_t IsOnlineMode () {return fIsOnline;}
50 AliRawReader* fRawReader; // object for reading the raw data
51 UChar_t* fData; // raw data
52 Int_t fPosition; // current (32 bit) position in fData
53 AliT0Parameters *fParam;
54 // Int_t fNTRM; //number of TRMs, 1 - testbeam; 2 - simulation
57 Int_t fAllData[110][5];
59 ClassDef(AliT0RawReader,2) //class for reading T0 Raw data
62 typedef AliT0RawReader AliSTARTRawReader; // for backward compatibility