]> git.uio.no Git - u/mrichter/AliRoot.git/blob - RAW/AliRawReaderRoot.h
42edcf2bd6f886228caa79a403481f4f6ea55712
[u/mrichter/AliRoot.git] / RAW / AliRawReaderRoot.h
1 #ifndef ALIRAWREADERROOT_H
2 #define ALIRAWREADERROOT_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 #include "AliRawReader.h"
7
8 class AliRawEvent;
9 class AliRawData;
10 class TFile;
11
12
13 class AliRawReaderRoot: public AliRawReader {
14   public :
15     AliRawReaderRoot(const char* fileName, Int_t eventNumber);
16     AliRawReaderRoot(AliRawEvent* event);
17     AliRawReaderRoot(const AliRawReaderRoot& rawReader);
18     AliRawReaderRoot& operator = (const AliRawReaderRoot& rawReader);
19     virtual ~AliRawReaderRoot();
20
21     virtual UInt_t   GetType() const;
22     virtual UInt_t   GetRunNumber() const;
23     virtual const UInt_t* GetEventId() const;
24     virtual const UInt_t* GetTriggerPattern() const;
25     virtual const UInt_t* GetDetectorPattern() const;
26     virtual const UInt_t* GetAttributes() const;
27     virtual UInt_t   GetLDCId() const;
28     virtual UInt_t   GetGDCId() const;
29
30     virtual Int_t    GetEquipmentSize() const;
31     virtual Int_t    GetEquipmentType() const;
32     virtual Int_t    GetEquipmentId() const;
33     virtual const UInt_t* GetEquipmentAttributes() const;
34     virtual Int_t    GetEquipmentElementSize() const;
35
36     virtual Bool_t   ReadHeader();
37     virtual Bool_t   ReadNextData(UChar_t*& data);
38
39     virtual Bool_t   Reset();
40
41     virtual Int_t    CheckData() const;
42
43   protected :
44     virtual Bool_t   ReadNext(UChar_t* data, Int_t size);
45
46     TFile*           fFile;         // raw data root file
47     AliRawEvent*     fEvent;        // (super) event
48     Int_t            fSubEventIndex; // index of current sub event
49     AliRawEvent*     fSubEvent;     // current sub event
50     AliRawData*      fRawData;      // current raw data
51     UChar_t*         fPosition;     // current position in the raw data
52     UChar_t*         fEnd;          // end position of the current subevent
53
54     ClassDef(AliRawReaderRoot, 0) // class for reading raw digits from a root file
55 };
56
57 #endif