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 */
8 #include "AliRawEvent.h"
9 #include "AliRawReader.h"
12 class AliRawReaderRoot: public AliRawReader {
14 AliRawReaderRoot(const char* fileName, Int_t eventNumber);
15 AliRawReaderRoot(AliRawEvent* event);
16 virtual ~AliRawReaderRoot();
18 virtual UInt_t GetType();
19 virtual UInt_t GetRunNumber();
20 virtual const UInt_t* GetEventId();
21 virtual const UInt_t* GetTriggerPattern();
22 virtual const UInt_t* GetDetectorPattern();
23 virtual const UInt_t* GetAttributes();
24 virtual UInt_t GetGDCId();
26 virtual Bool_t ReadMiniHeader();
27 virtual Bool_t ReadNextData(UChar_t*& data);
29 virtual Bool_t Reset();
32 virtual Bool_t ReadNext(UChar_t* data, Int_t size);
34 TFile* fFile; // raw data root file
35 AliRawEvent* fEvent; // (super) event
36 Int_t fSubEventIndex; // index of current sub event
37 AliRawEvent* fSubEvent; // current sub event
38 AliRawData* fRawData; // current raw data
39 UChar_t* fPosition; // current position in the raw data
40 UChar_t* fEnd; // end position of the current subevent
42 ClassDef(AliRawReaderRoot, 0) // class for reading raw digits from a root file