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 */
6 #include "AliRawReader.h"
8 struct eventHeaderStruct;
9 struct equipmentHeaderStruct;
12 class AliRawReaderDate: public AliRawReader {
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();
20 void RequireMiniHeader(Bool_t required = kTRUE)
21 {fRequireMiniHeader = required;};
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;
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;
38 virtual Bool_t ReadHeader();
39 virtual Bool_t ReadNextData(UChar_t*& data);
41 virtual Bool_t Reset();
43 virtual Int_t CheckData() const;
46 virtual Bool_t ReadNext(UChar_t* data, Int_t size);
48 Bool_t fRequireMiniHeader; // if false, data without mini header is accepted
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
55 UChar_t* fPosition; // current position in the raw data
56 UChar_t* fEnd; // end position of the current data block
58 ClassDef(AliRawReaderDate, 0) // class for reading raw digits from a root file