]> git.uio.no Git - u/mrichter/AliRoot.git/blame - RAW/AliRawReaderDate.h
Add header and implementation file for the new class
[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
bea6b2a4 6/* $Id$ */
7
8///////////////////////////////////////////////////////////////////////////////
9///
10/// This is a class for reading raw data from a date file or event.
11///
12///////////////////////////////////////////////////////////////////////////////
13
16048fcf 14#include "AliRawReader.h"
15
16struct eventHeaderStruct;
c946ab02 17struct equipmentHeaderStruct;
16048fcf 18
19
20class AliRawReaderDate: public AliRawReader {
21 public :
d87c6cb8 22 AliRawReaderDate(void* event, Bool_t owner = kFALSE);
dd9a70fe 23 AliRawReaderDate(const char* fileName, Int_t eventNumber = -1);
c946ab02 24 virtual ~AliRawReaderDate();
25
16048fcf 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;
e94ad92c 32 virtual const UInt_t* GetSubEventAttributes() const;
c946ab02 33 virtual UInt_t GetLDCId() const;
16048fcf 34 virtual UInt_t GetGDCId() const;
741c154c 35 virtual UInt_t GetTimestamp() const;
16048fcf 36
c946ab02 37 virtual Int_t GetEquipmentSize() const;
38 virtual Int_t GetEquipmentType() const;
39 virtual Int_t GetEquipmentId() const;
40 virtual const UInt_t* GetEquipmentAttributes() const;
41 virtual Int_t GetEquipmentElementSize() const;
299738b9 42 virtual Int_t GetEquipmentHeaderSize() const;
c946ab02 43
44 virtual Bool_t ReadHeader();
16048fcf 45 virtual Bool_t ReadNextData(UChar_t*& data);
bf22797a 46 virtual Bool_t ReadNext(UChar_t* data, Int_t size);
16048fcf 47
48 virtual Bool_t Reset();
49
dd9a70fe 50 virtual Bool_t NextEvent();
51 virtual Bool_t RewindEvents();
52
b4857df7 53 virtual Int_t CheckData() const;
54
b900a426 55 virtual AliRawReader* CloneSingleEvent() const;
56
16048fcf 57 protected :
dd9a70fe 58 FILE* fFile; // DATE file
16048fcf 59 eventHeaderStruct* fEvent; // raw data super event
60 eventHeaderStruct* fSubEvent; // raw data sub event
c946ab02 61 equipmentHeaderStruct* fEquipment; // raw data equipment header
16048fcf 62
63 UChar_t* fPosition; // current position in the raw data
c946ab02 64 UChar_t* fEnd; // end position of the current data block
16048fcf 65
d87c6cb8 66 Bool_t fOwner; // is raw-reader owner of the raw event or not
67
dd9a70fe 68 private:
34576417 69 AliRawReaderDate(const AliRawReaderDate& rawReader); // Not implemented
70 AliRawReaderDate& operator = (const AliRawReaderDate& rawReader); // Not implemented
dd9a70fe 71
16048fcf 72 ClassDef(AliRawReaderDate, 0) // class for reading raw digits from a root file
73};
74
75#endif