]> git.uio.no Git - u/mrichter/AliRoot.git/blob - RAW/AliRawReaderDate.h
0f856fd47d028fd576ca9efb8157476769a8d200
[u/mrichter/AliRoot.git] / RAW / AliRawReaderDate.h
1 #ifndef ALIRAWREADERDATE_H
2 #define ALIRAWREADERDATE_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 struct eventHeaderStruct;
9 struct equipmentHeaderStruct;
10
11
12 class AliRawReaderDate: public AliRawReader {
13   public :
14     AliRawReaderDate(void* event);
15     AliRawReaderDate(const char* fileName, Int_t eventNumber);
16     AliRawReaderDate(const AliRawReaderDate& rawReader);
17     AliRawReaderDate& operator = (const AliRawReaderDate& rawReader);
18     virtual ~AliRawReaderDate();
19
20     void             RequireMiniHeader(Bool_t required = kTRUE)
21       {fRequireMiniHeader = required;};
22
23     virtual UInt_t   GetType() const;
24     virtual UInt_t   GetRunNumber() const;
25     virtual const UInt_t* GetEventId() const;
26     virtual const UInt_t* GetTriggerPattern() const;
27     virtual const UInt_t* GetDetectorPattern() const;
28     virtual const UInt_t* GetAttributes() const;
29     virtual UInt_t   GetLDCId() const;
30     virtual UInt_t   GetGDCId() const;
31
32     virtual Int_t    GetEquipmentSize() const;
33     virtual Int_t    GetEquipmentType() const;
34     virtual Int_t    GetEquipmentId() const;
35     virtual const UInt_t* GetEquipmentAttributes() const;
36     virtual Int_t    GetEquipmentElementSize() const;
37
38     virtual Bool_t   ReadHeader();
39     virtual Bool_t   ReadNextData(UChar_t*& data);
40
41     virtual Bool_t   Reset();
42
43     virtual Int_t    CheckData() const;
44
45   protected :
46     virtual Bool_t   ReadNext(UChar_t* data, Int_t size);
47
48     Bool_t           fRequireMiniHeader; // if false, data without mini header is accepted
49
50     eventHeaderStruct* fEvent;      // raw data super event
51     eventHeaderStruct* fSubEvent;   // raw data sub event
52     equipmentHeaderStruct* fEquipment; // raw data equipment header
53     Bool_t           fIsOwner;      // flag for ownership of fEvent
54
55     UChar_t*         fPosition;     // current position in the raw data
56     UChar_t*         fEnd;          // end position of the current data block
57
58     ClassDef(AliRawReaderDate, 0) // class for reading raw digits from a root file
59 };
60
61 #endif