1 #ifndef ALIRAWREADERROOT_H
2 #define ALIRAWREADERROOT_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"
13 class AliRawReaderRoot: public AliRawReader {
15 AliRawReaderRoot(const char* fileName, Int_t eventNumber);
16 AliRawReaderRoot(AliRawEvent* event);
17 AliRawReaderRoot(const AliRawReaderRoot& rawReader);
18 AliRawReaderRoot& operator = (const AliRawReaderRoot& rawReader);
19 virtual ~AliRawReaderRoot();
21 virtual UInt_t GetType() const;
22 virtual UInt_t GetRunNumber() const;
23 virtual const UInt_t* GetEventId() const;
24 virtual const UInt_t* GetTriggerPattern() const;
25 virtual const UInt_t* GetDetectorPattern() const;
26 virtual const UInt_t* GetAttributes() const;
27 virtual UInt_t GetLDCId() const;
28 virtual UInt_t GetGDCId() const;
30 virtual Int_t GetEquipmentSize() const;
31 virtual Int_t GetEquipmentType() const;
32 virtual Int_t GetEquipmentId() const;
33 virtual const UInt_t* GetEquipmentAttributes() const;
34 virtual Int_t GetEquipmentElementSize() const;
36 virtual Bool_t ReadHeader();
37 virtual Bool_t ReadNextData(UChar_t*& data);
39 virtual Bool_t Reset();
41 virtual Int_t CheckData() const;
44 virtual Bool_t ReadNext(UChar_t* data, Int_t size);
46 TFile* fFile; // raw data root file
47 AliRawEvent* fEvent; // (super) event
48 Int_t fSubEventIndex; // index of current sub event
49 AliRawEvent* fSubEvent; // current sub event
50 AliRawData* fRawData; // current raw data
51 UChar_t* fPosition; // current position in the raw data
52 UChar_t* fEnd; // end position of the current subevent
54 ClassDef(AliRawReaderRoot, 0) // class for reading raw digits from a root file