]> git.uio.no Git - u/mrichter/AliRoot.git/blame - RAW/AliRawReaderRoot.h
Macro to plot pathlengths of back-to-back jets. (A. Dainese)
[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
b4857df7 34 virtual Int_t CheckData() const;
35
04fa961a 36 protected :
37 virtual Bool_t ReadNext(UChar_t* data, Int_t size);
38
39 TFile* fFile; // raw data root file
40 AliRawEvent* fEvent; // (super) event
41 Int_t fSubEventIndex; // index of current sub event
42 AliRawEvent* fSubEvent; // current sub event
43 AliRawData* fRawData; // current raw data
44 UChar_t* fPosition; // current position in the raw data
45 UChar_t* fEnd; // end position of the current subevent
46
47 ClassDef(AliRawReaderRoot, 0) // class for reading raw digits from a root file
48};
49
50#endif