]> git.uio.no Git - u/mrichter/AliRoot.git/blame - RAW/AliRawReaderRoot.h
after fix by Andreas the AliEn API is now working on ia64.
[u/mrichter/AliRoot.git] / RAW / AliRawReaderRoot.h
CommitLineData
04fa961a 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 */
5
04fa961a 6#include "AliRawReader.h"
7
42d20574 8class AliRawEvent;
9class AliRawData;
10class TFile;
11
04fa961a 12
13class AliRawReaderRoot: public AliRawReader {
14 public :
15 AliRawReaderRoot(const char* fileName, Int_t eventNumber);
16 AliRawReaderRoot(AliRawEvent* event);
42d20574 17 AliRawReaderRoot(const AliRawReaderRoot& rawReader);
18 AliRawReaderRoot& operator = (const AliRawReaderRoot& rawReader);
04fa961a 19 virtual ~AliRawReaderRoot();
20
42d20574 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;
04fa961a 28
29 virtual Bool_t ReadMiniHeader();
30 virtual Bool_t ReadNextData(UChar_t*& data);
31
32 virtual Bool_t Reset();
33
34 protected :
35 virtual Bool_t ReadNext(UChar_t* data, Int_t size);
36
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
44
45 ClassDef(AliRawReaderRoot, 0) // class for reading raw digits from a root file
46};
47
48#endif