]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RAW/AliRawReader.h
Comments for Doxygen (mostly added comments for inline functions)
[u/mrichter/AliRoot.git] / RAW / AliRawReader.h
index daf56642212428be8a1a40949426c5f667745d03..b70645257daacb1748ea2f2ae2800b70ea8e8e9c 100644 (file)
@@ -13,6 +13,9 @@
 
 #include <TObject.h>
 #include <TArrayI.h>
+#include <TClonesArray.h>
+
+#include "AliRawDataErrorLog.h"
 #include "AliRawDataHeader.h"
 
 class AliRawEventHeaderBase;
@@ -106,6 +109,26 @@ class AliRawReader: public TObject {
 
     void             DumpData(Int_t limit = -1);
 
+    void             AddErrorLog(AliRawDataErrorLog::ERawDataErrorLevel level,
+                                Int_t code,
+                                const char *message = NULL);
+    void             AddMinorErrorLog(Int_t code,
+                                     const char *message = NULL) {
+      return AddErrorLog(AliRawDataErrorLog::kMinor,code,message);
+    }
+    void             AddMajorErrorLog(Int_t code,
+                                     const char *message = NULL) {
+      return AddErrorLog(AliRawDataErrorLog::kMajor,code,message);
+    }
+    void             AddFatalErrorLog(Int_t code,
+                                     const char *message = NULL) {
+      return AddErrorLog(AliRawDataErrorLog::kFatal,code,message);
+    }
+    Int_t            GetNumberOfErrorLogs() const { return fErrorLogs.GetEntriesFast(); }
+    AliRawDataErrorLog *GetErrorLog(Int_t i) const {
+      return (AliRawDataErrorLog *)fErrorLogs.UncheckedAt(i);
+    }
+
   protected :
     Bool_t           IsSelected() const;
     Bool_t           IsEventSelected() const;
@@ -126,6 +149,9 @@ class AliRawReader: public TObject {
 
     Int_t            fErrorCode;            // code of last error
 
+    Int_t            fEventNumber;          // current event number
+    TClonesArray     fErrorLogs;        // raw data decoding errors
+
     ClassDef(AliRawReader, 0) // base class for reading raw digits
 };