]>
Commit | Line | Data |
---|---|---|
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 | ||
6 | /* $Id$ */ | |
7 | ||
8 | /////////////////////////////////////////////////////////////////////////////// | |
9 | /// | |
10 | /// This is a class for reading raw data from a root file. | |
11 | /// | |
12 | /////////////////////////////////////////////////////////////////////////////// | |
13 | ||
14 | #include "AliRawReader.h" | |
15 | ||
16 | class AliRawEvent; | |
17 | class AliRawEquipment; | |
18 | class AliRawData; | |
19 | class TFile; | |
20 | class TBranch; | |
21 | ||
22 | ||
23 | class AliRawReaderRoot: public AliRawReader { | |
24 | public : | |
25 | AliRawReaderRoot(const char* fileName, Int_t eventNumber = -1); | |
26 | AliRawReaderRoot(AliRawEvent* event); | |
27 | AliRawReaderRoot(const AliRawReaderRoot& rawReader); | |
28 | AliRawReaderRoot& operator = (const AliRawReaderRoot& rawReader); | |
29 | virtual ~AliRawReaderRoot(); | |
30 | ||
31 | virtual UInt_t GetType() const; | |
32 | virtual UInt_t GetRunNumber() const; | |
33 | virtual const UInt_t* GetEventId() const; | |
34 | virtual const UInt_t* GetTriggerPattern() const; | |
35 | virtual const UInt_t* GetDetectorPattern() const; | |
36 | virtual const UInt_t* GetAttributes() const; | |
37 | virtual const UInt_t* GetSubEventAttributes() const; | |
38 | virtual UInt_t GetLDCId() const; | |
39 | virtual UInt_t GetGDCId() const; | |
40 | ||
41 | virtual Int_t GetEquipmentSize() const; | |
42 | virtual Int_t GetEquipmentType() const; | |
43 | virtual Int_t GetEquipmentId() const; | |
44 | virtual const UInt_t* GetEquipmentAttributes() const; | |
45 | virtual Int_t GetEquipmentElementSize() const; | |
46 | ||
47 | virtual Bool_t ReadHeader(); | |
48 | virtual Bool_t ReadNextData(UChar_t*& data); | |
49 | ||
50 | virtual Bool_t Reset(); | |
51 | ||
52 | virtual Bool_t NextEvent(); | |
53 | virtual Bool_t RewindEvents(); | |
54 | ||
55 | virtual Int_t CheckData() const; | |
56 | ||
57 | protected : | |
58 | virtual Bool_t ReadNext(UChar_t* data, Int_t size); | |
59 | ||
60 | TFile* fFile; // raw data root file | |
61 | TBranch* fBranch; // branch of raw events | |
62 | Int_t fEventIndex; // index of the event in the tree | |
63 | AliRawEvent* fEvent; // (super) event | |
64 | Int_t fSubEventIndex; // index of current sub event | |
65 | AliRawEvent* fSubEvent; // current sub event | |
66 | Int_t fEquipmentIndex; // index of current equipment | |
67 | AliRawEquipment* fEquipment; // current equipment | |
68 | AliRawData* fRawData; // current raw data | |
69 | UChar_t* fPosition; // current position in the raw data | |
70 | UChar_t* fEnd; // end position of the current subevent | |
71 | ||
72 | ClassDef(AliRawReaderRoot, 0) // class for reading raw digits from a root file | |
73 | }; | |
74 | ||
75 | #endif |