]> git.uio.no Git - u/mrichter/AliRoot.git/blame - RAW/AliRawReaderRoot.h
Removing AliFatal from the altro decoding class. Decoding errors are now stored in...
[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
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 16class AliRawEvent;
94d918a7 17class AliRawEquipment;
42d20574 18class AliRawData;
19class TFile;
dd9a70fe 20class TBranch;
42d20574 21
04fa961a 22
23class AliRawReaderRoot: public AliRawReader {
24 public :
dd9a70fe 25 AliRawReaderRoot(const char* fileName, Int_t eventNumber = -1);
04fa961a 26 AliRawReaderRoot(AliRawEvent* event);
42d20574 27 AliRawReaderRoot(const AliRawReaderRoot& rawReader);
28 AliRawReaderRoot& operator = (const AliRawReaderRoot& rawReader);
04fa961a 29 virtual ~AliRawReaderRoot();
30
1fb5b4a8 31 virtual const AliRawEventHeaderBase* GetEventHeader() const;
32
42d20574 33 virtual UInt_t GetType() const;
34 virtual UInt_t GetRunNumber() const;
35 virtual const UInt_t* GetEventId() const;
36 virtual const UInt_t* GetTriggerPattern() const;
37 virtual const UInt_t* GetDetectorPattern() const;
38 virtual const UInt_t* GetAttributes() const;
e94ad92c 39 virtual const UInt_t* GetSubEventAttributes() const;
c946ab02 40 virtual UInt_t GetLDCId() const;
42d20574 41 virtual UInt_t GetGDCId() const;
04fa961a 42
c946ab02 43 virtual Int_t GetEquipmentSize() const;
44 virtual Int_t GetEquipmentType() const;
45 virtual Int_t GetEquipmentId() const;
46 virtual const UInt_t* GetEquipmentAttributes() const;
47 virtual Int_t GetEquipmentElementSize() const;
299738b9 48 virtual Int_t GetEquipmentHeaderSize() const;
c946ab02 49
50 virtual Bool_t ReadHeader();
04fa961a 51 virtual Bool_t ReadNextData(UChar_t*& data);
bf22797a 52 virtual Bool_t ReadNext(UChar_t* data, Int_t size);
04fa961a 53
54 virtual Bool_t Reset();
55
dd9a70fe 56 virtual Bool_t NextEvent();
57 virtual Bool_t RewindEvents();
58
b4857df7 59 virtual Int_t CheckData() const;
60
04fa961a 61 protected :
04fa961a 62 TFile* fFile; // raw data root file
dd9a70fe 63 TBranch* fBranch; // branch of raw events
64 Int_t fEventIndex; // index of the event in the tree
04fa961a 65 AliRawEvent* fEvent; // (super) event
66 Int_t fSubEventIndex; // index of current sub event
67 AliRawEvent* fSubEvent; // current sub event
94d918a7 68 Int_t fEquipmentIndex; // index of current equipment
69 AliRawEquipment* fEquipment; // current equipment
04fa961a 70 AliRawData* fRawData; // current raw data
71 UChar_t* fPosition; // current position in the raw data
72 UChar_t* fEnd; // end position of the current subevent
73
74 ClassDef(AliRawReaderRoot, 0) // class for reading raw digits from a root file
75};
76
77#endif