]> git.uio.no Git - u/mrichter/AliRoot.git/blob - START/AliSTARTRawReader.h
new RAW DATA (TOF) format uncompatible with PDC06 data
[u/mrichter/AliRoot.git] / START / AliSTARTRawReader.h
1 #ifndef ALISTARTRAWREADER_H
2 #define ALISTARTRAWREADER_H
3  
4 #include <TTask.h>
5 #include <Riostream.h>
6 #include "TTree.h"
7 #include "AliSTARTdigit.h"
8 #include "AliRawReader.h"
9  
10 class AliSTARTRawReader : public TTask {
11   public :
12
13   AliSTARTRawReader(AliRawReader *rawReader, TTree* tree) ;
14
15   virtual  ~AliSTARTRawReader();
16
17
18   Bool_t  Next(); //read next raw digit
19   Int_t            GetPosition();
20   // void UnpackTime(Int_t outTime, Int_t outCh);
21   UInt_t         GetNextWord();
22   
23   protected :
24
25   AliSTARTdigit* fDigits;
26   TTree*        fTree;
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
31
32   
33  ClassDef(AliSTARTRawReader, 0) //class for reading START Raw data
34 };
35  
36 #endif