Bugfix in raw data reader classes. The bug affected the determination of the raw...
[u/mrichter/AliRoot.git] / RAW / AliRawReaderDate.h
... / ...
CommitLineData
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/* $Id$ */
7
8///////////////////////////////////////////////////////////////////////////////
9///
10/// This is a class for reading raw data from a date file or event.
11///
12///////////////////////////////////////////////////////////////////////////////
13
14#include "AliRawReader.h"
15
16struct eventHeaderStruct;
17struct equipmentHeaderStruct;
18
19
20class AliRawReaderDate: public AliRawReader {
21 public :
22 AliRawReaderDate(void* event);
23 AliRawReaderDate(const char* fileName, Int_t eventNumber = -1);
24 virtual ~AliRawReaderDate();
25
26 virtual UInt_t GetType() const;
27 virtual UInt_t GetRunNumber() const;
28 virtual const UInt_t* GetEventId() const;
29 virtual const UInt_t* GetTriggerPattern() const;
30 virtual const UInt_t* GetDetectorPattern() const;
31 virtual const UInt_t* GetAttributes() const;
32 virtual const UInt_t* GetSubEventAttributes() const;
33 virtual UInt_t GetLDCId() const;
34 virtual UInt_t GetGDCId() const;
35
36 virtual Int_t GetEquipmentSize() const;
37 virtual Int_t GetEquipmentType() const;
38 virtual Int_t GetEquipmentId() const;
39 virtual const UInt_t* GetEquipmentAttributes() const;
40 virtual Int_t GetEquipmentElementSize() const;
41 virtual Int_t GetEquipmentHeaderSize() const;
42
43 virtual Bool_t ReadHeader();
44 virtual Bool_t ReadNextData(UChar_t*& data);
45 virtual Bool_t ReadNext(UChar_t* data, Int_t size);
46
47 virtual Bool_t Reset();
48
49 virtual Bool_t NextEvent();
50 virtual Bool_t RewindEvents();
51
52 virtual Int_t CheckData() const;
53
54 protected :
55 FILE* fFile; // DATE file
56 eventHeaderStruct* fEvent; // raw data super event
57 eventHeaderStruct* fSubEvent; // raw data sub event
58 equipmentHeaderStruct* fEquipment; // raw data equipment header
59
60 UChar_t* fPosition; // current position in the raw data
61 UChar_t* fEnd; // end position of the current data block
62
63 private:
64 AliRawReaderDate(const AliRawReaderDate& rawReader);
65 AliRawReaderDate& operator = (const AliRawReaderDate& rawReader);
66
67 ClassDef(AliRawReaderDate, 0) // class for reading raw digits from a root file
68};
69
70#endif