1 #ifndef ALIT0RAWREADER_H
2 #define ALIT0RAWREADER_H
3 /***************************************************************************
4 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights
7 * Alla Maevskaya INR RAS alla@inr.ru
9 * See cxx source for full Copyright notice
10 ***************************************************************************/
14 #include "AliRawReader.h"
15 #include "AliT0Parameters.h"
18 class AliT0RawReader : public TTask {
21 AliT0RawReader(AliRawReader *rawReader,Bool_t isOnline = kFALSE) ;
22 // AliT0RawReader(AliRawReader *rawReader,Bool_t isOnline = kTRUE) ;
24 virtual ~AliT0RawReader();
25 AliT0RawReader(const AliT0RawReader& o): TTask(o),
33 AliT0RawReader& operator=(const AliT0RawReader&) { return *this; }
36 Bool_t Next(); //read next raw digit
39 Int_t GetData( Int_t channel, Int_t hit) {return fAllData[channel][hit];}
42 enum ET0RawReaderError {
43 kIncorrectDataSize = 1,
48 kWrongChain0Header = 6,
49 kWrongChain0Trailer = 7,
50 kWrongChain1Header = 8,
51 kWrongChain1Trailer = 9,
55 Bool_t IsOnlineMode () {return fIsOnline;}
59 AliRawReader* fRawReader; // object for reading the raw data
60 UChar_t* fData; // raw data
61 Int_t fPosition; // current (32 bit) position in fData
62 AliT0Parameters *fParam; // instanse of Parameters class
63 Bool_t fIsOnline; // for case online DA usage
65 Int_t fAllData[110][50]; // container for raw data
67 ClassDef(AliT0RawReader,2) //class for reading T0 Raw data
70 typedef AliT0RawReader AliSTARTRawReader; // for backward compatibility