X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=ITS%2FAliITSRawStreamSPDErrorLog.h;h=68b7da2fa749d224da203cee2917a8b4997225ad;hb=c95e0219956777b748e2d9b5c925cf585cd13448;hp=cb35480b5542a7d5dea2b52570a6c81099df4d89;hpb=478d804c5c6c7f3e60209816196a426ac702876c;p=u%2Fmrichter%2FAliRoot.git diff --git a/ITS/AliITSRawStreamSPDErrorLog.h b/ITS/AliITSRawStreamSPDErrorLog.h index cb35480b554..68b7da2fa74 100644 --- a/ITS/AliITSRawStreamSPDErrorLog.h +++ b/ITS/AliITSRawStreamSPDErrorLog.h @@ -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 @@ -78,3 +87,4 @@ class AliITSRawStreamSPDErrorLog : public TObject { }; #endif +