readers updated (mini header -> data header)
[u/mrichter/AliRoot.git] / RAW / AliRawReaderDate.h
CommitLineData
16048fcf 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
8struct eventHeaderStruct;
c946ab02 9struct equipmentHeaderStruct;
16048fcf 10
11
12class AliRawReaderDate: public AliRawReader {
13 public :
14 AliRawReaderDate(void* event);
c946ab02 15 AliRawReaderDate(const char* fileName, Int_t eventNumber);
16048fcf 16 AliRawReaderDate(const AliRawReaderDate& rawReader);
17 AliRawReaderDate& operator = (const AliRawReaderDate& rawReader);
c946ab02 18 virtual ~AliRawReaderDate();
19
39f9963f 20 void RequireHeader(Bool_t required = kTRUE)
21 {fRequireHeader = required;};
16048fcf 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;
c946ab02 29 virtual UInt_t GetLDCId() const;
16048fcf 30 virtual UInt_t GetGDCId() const;
31
c946ab02 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();
16048fcf 39 virtual Bool_t ReadNextData(UChar_t*& data);
40
41 virtual Bool_t Reset();
42
b4857df7 43 virtual Int_t CheckData() const;
44
16048fcf 45 protected :
46 virtual Bool_t ReadNext(UChar_t* data, Int_t size);
47
39f9963f 48 Bool_t fRequireHeader; // if false, data without header is accepted
c946ab02 49
16048fcf 50 eventHeaderStruct* fEvent; // raw data super event
51 eventHeaderStruct* fSubEvent; // raw data sub event
c946ab02 52 equipmentHeaderStruct* fEquipment; // raw data equipment header
53 Bool_t fIsOwner; // flag for ownership of fEvent
16048fcf 54
55 UChar_t* fPosition; // current position in the raw data
c946ab02 56 UChar_t* fEnd; // end position of the current data block
16048fcf 57
58 ClassDef(AliRawReaderDate, 0) // class for reading raw digits from a root file
59};
60
61#endif