#include <TObject.h>
#include <TArrayI.h>
+#include <TClonesArray.h>
+
+#include "AliRawDataErrorLog.h"
#include "AliRawDataHeader.h"
class AliRawEventHeaderBase;
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;
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
};