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