]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSRawStreamSPDErrorLog.h
Merge branch 'master' of https://git.cern.ch/reps/AliRoot
[u/mrichter/AliRoot.git] / ITS / AliITSRawStreamSPDErrorLog.h
index cb35480b5542a7d5dea2b52570a6c81099df4d89..da4ada0cbac297788c05d855ac099337d1078610 100644 (file)
@@ -24,12 +24,16 @@ class AliITSRawStreamSPDErrorLog : public TObject {
   AliITSRawStreamSPDErrorLog& operator=(const AliITSRawStreamSPDErrorLog& logger);
   virtual ~AliITSRawStreamSPDErrorLog();
 
-  enum    {kNrErrorCodes = 17};
+  enum    {kNrErrorCodes = 21};
   enum    {kTotal = 0};
 
   void    Reset();
   void    ProcessError(UInt_t errorCode, UInt_t eq, Int_t bytesRead, Int_t headersRead, const Char_t *errMess);
   void    AddMessage(const Char_t *errMess);
+
+  void    ResetEvent();
+  void    ProcessEvent(UInt_t eventNum);
+  void    AddErrorMessagesFromCurrentEvent(UInt_t eventNum);
   void    SummarizeEvent(UInt_t eventNum);
 
   UInt_t  GetNrErrors(UInt_t errorCode, UInt_t eq);
@@ -49,10 +53,15 @@ class AliITSRawStreamSPDErrorLog : public TObject {
   TH1F*   GetConsErrFraction(UInt_t eq);        // NB!!! Take care of deleting returned object later
   TH1F*   GetConsErrFractionUnScaled(UInt_t eq);
   TGText* GetText() {return fText;}
+  TGText* GetTextThisEvent(UInt_t eq) {if (eq<20) return fTextTmp[eq]; else return NULL;}
+  TGText* GetTextGeneralThisEvent() {return fTextTmpGeneral;}
 
+  UInt_t  GetEventErrPosCounter(UInt_t errorCode, UInt_t eq);
+  UInt_t  GetEventErrPos(UInt_t index, UInt_t errorCode, UInt_t eq);
 
  private:
   Int_t   fNErrors[kNrErrorCodes][20];          // number of errors for this event, for each code and eq
+  Int_t   fNErrorsTotal[kNrErrorCodes][20];     // number of errors for all events, for each code and eq
   UInt_t  fNEvents[20];                         // number of events used, for each eq
   UInt_t  fErrEventCounter[kNrErrorCodes][20];  // event counter used when filling graph
   UInt_t  fErrPosCounter[kNrErrorCodes][20];    // event counter used when filling graph
@@ -72,9 +81,10 @@ class AliITSRawStreamSPDErrorLog : public TObject {
   TGText  *fTextTmpGeneral;                     // text buffer for this event (general errors)
 
   void    InitHistograms();
-  void    DeleteHistograms() const;
+  void    DeleteHistograms() ;
 
   ClassDef(AliITSRawStreamSPDErrorLog, 2);
 };
 
 #endif
+