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 GetGDCId() const;
29 virtual Bool_t ReadMiniHeader();
30 virtual Bool_t ReadNextData(UChar_t*& data);
32 virtual Bool_t Reset();
35 virtual Bool_t ReadNext(UChar_t* data, Int_t size);
37 TFile* fFile; // raw data root file
38 AliRawEvent* fEvent; // (super) event
39 Int_t fSubEventIndex; // index of current sub event
40 AliRawEvent* fSubEvent; // current sub event
41 AliRawData* fRawData; // current raw data
42 UChar_t* fPosition; // current position in the raw data
43 UChar_t* fEnd; // end position of the current subevent
45 ClassDef(AliRawReaderRoot, 0) // class for reading raw digits from a root file