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