1 #ifndef ALIRAWDATAERRORLOG_H
2 #define ALIRAWDATAERRORLOG_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
7 /////////////////////////////////////////////////////////////////////
9 // class AliRawDataErrorLog //
10 // This is a class for logging raw-data related errors. //
11 // It is used to record and retrieve of the errors //
12 // during the reading and reconstruction of raw-data and ESD //
14 // Further description of the methods and functionality are given //
17 // cvetan.cheshkov@cern.ch //
19 /////////////////////////////////////////////////////////////////////
23 class AliRawDataErrorLog: public TNamed {
27 enum ERawDataErrorType {
35 AliRawDataErrorLog(Int_t eventNumber, Int_t ddlId,
36 ERawDataErrorType errorType,
37 const char *message = NULL);
38 AliRawDataErrorLog(const AliRawDataErrorLog & source);
39 AliRawDataErrorLog & operator=(const AliRawDataErrorLog & source);
40 virtual ~AliRawDataErrorLog() {};
42 Int_t GetEventNumber() const { return fEventNumber; }
43 Int_t GetDdlID() const { return fDdlID; }
44 ERawDataErrorType GetErrorType() const { return fErrorType; }
45 const char * GetMessage() const { return fName.Data(); }
47 Bool_t IsSortable() const {return kTRUE;}
48 Int_t Compare(const TObject* obj) const;
52 Int_t fEventNumber; // Event number as it appears in the input raw-data file
53 Int_t fDdlID; // ID of the DLL in which the error occured
54 ERawDataErrorType fErrorType; // Type of the raw data error
56 ClassDef(AliRawDataErrorLog, 1)