ROOT logo
AliRoot » ITS » AliITSRawStreamSPDErrorLog

class AliITSRawStreamSPDErrorLog: public TObject

Author: Henrik Tydesjo
For easier handling of error messages from AliITSRawStreamSPD.
The purpose of this class is to make possible the switch to the
AliRoot raw data parsing routines in the onlinte monitoring
 programs, like SPD-MOOD, and still keep all the old functionality.

Function Members (Methods)

public:
AliITSRawStreamSPDErrorLog()
AliITSRawStreamSPDErrorLog(const AliITSRawStreamSPDErrorLog& logger)
virtual~AliITSRawStreamSPDErrorLog()
voidTObject::AbstractMethod(const char* method) const
voidAddErrorMessagesFromCurrentEvent(UInt_t eventNum)
voidAddMessage(const Char_t* errMess)
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidTObject::Copy(TObject& object) const
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
TGraph*GetConsErrEvent(UInt_t errorCode, UInt_t eq)
TH1F*GetConsErrFraction(UInt_t eq)
TH1F*GetConsErrFractionUnScaled(UInt_t eq)
TGraph*GetConsErrPos(UInt_t errorCode, UInt_t eq)
TH1F*GetConsErrType(UInt_t eq)
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
UInt_tGetEventErrPos(UInt_t index, UInt_t errorCode, UInt_t eq)
UInt_tGetEventErrPosCounter(UInt_t errorCode, UInt_t eq)
virtual const char*TObject::GetIconName() const
virtual const char*TObject::GetName() const
static UInt_tGetNrErrorCodes()
UInt_tGetNrErrors(UInt_t errorCode, UInt_t eq)
UInt_tGetNrErrorsAllEq(UInt_t errorCode)
UInt_tGetNrErrorsTotal(UInt_t errorCode, UInt_t eq)
UInt_tGetNrErrorsTotalAllEq(UInt_t errorCode)
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
TGText*GetText()
TGText*GetTextGeneralThisEvent()
TGText*GetTextThisEvent(UInt_t eq)
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTObject::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
AliITSRawStreamSPDErrorLog&operator=(const AliITSRawStreamSPDErrorLog& logger)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTObject::Print(Option_t* option = "") const
voidProcessError(UInt_t errorCode, UInt_t eq, Int_t bytesRead, Int_t headersRead, const Char_t* errMess)
voidProcessEvent(UInt_t eventNum)
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidReset()
voidTObject::ResetBit(UInt_t f)
voidResetEvent()
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
voidSetByteOffset(UInt_t eq, Int_t size)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector&)
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
voidSummarizeEvent(UInt_t eventNum)
voidSuppressErrorEq(UInt_t eq, Bool_t suppr = kTRUE)
voidSuppressErrorMessages(UInt_t errorCode, Bool_t suppr = kTRUE)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()
private:
voidDeleteHistograms()
voidInitHistograms()

Data Members

public:
enum { kNrErrorCodes
kTotal
};
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
private:
Int_tfByteOffset[20]offset: how many bytes in the equipment header, for each eq
TGraph*fConsErrEvent[21][20]graphs to display number of errors found in each event
TH1F*fConsErrFraction[20]histogram of rate of events with errors for each error code
TGraph*fConsErrPos[21][20]graphs to display number of bytes read for each error and event
TGraph*fConsErrPosTMP[21][20]temporary, to fill tgraph above for event
TH1F*fConsErrType[20]histogram of how many errors for each error code
UInt_tfErrEventCounter[21][20]event counter used when filling graph
UInt_tfErrPosCounter[21][20]event counter used when filling graph
UInt_tfErrPosTMPCounter[21][20]event counter used when filling graph
Int_tfNErrors[21][20]number of errors for this event, for each code and eq
Int_tfNErrorsTotal[21][20]number of errors for all events, for each code and eq
UInt_tfNEvents[20]number of events used, for each eq
Bool_tfSuppressEq[20]do we suppress error messages for a specific eq?
Bool_tfSuppressMess[21]do we suppress error messages for a specific error code?
TGText*fTexttext buffer for all events analyzed so far
TGText*fTextTmp[20]text buffer for this event (defined error codes)
TGText*fTextTmpGeneraltext buffer for this event (general errors)

Class Charts

Inheritance Chart:
TObject
AliITSRawStreamSPDErrorLog

Function documentation

AliITSRawStreamSPDErrorLog()
 default constructor
AliITSRawStreamSPDErrorLog(const AliITSRawStreamSPDErrorLog& logger)
 copy constructor
AliITSRawStreamSPDErrorLog& operator=(const AliITSRawStreamSPDErrorLog& logger)
 assignment operator
~AliITSRawStreamSPDErrorLog()
 destructor
void InitHistograms()
 initialize histograms
void DeleteHistograms()
 delete histograms
void Reset()
void ProcessError(UInt_t errorCode, UInt_t eq, Int_t bytesRead, Int_t headersRead, const Char_t* errMess)
 Process an error
void AddMessage(const Char_t* errMess)
 add a general message to the buffer
void ResetEvent()
 reset error counters for current event
void AddErrorMessagesFromCurrentEvent(UInt_t eventNum)
void ProcessEvent(UInt_t eventNum)
 summarize the information for the current event
  TString msg;
  if (fText->RowCount()>5000) {
    fText->Clear();
    msg = "*** previous errors cleared ***";
    fText->InsLine(fText->RowCount(),msg.Data());
  }
  if (fTextTmpGeneral->RowCount()>1) {
    msg = Form("*** Event %d , General Errors: ***",eventNum);
    fText->InsLine(fText->RowCount(),msg.Data());
    fText->AddText(fTextTmpGeneral);
    fTextTmpGeneral->Clear();
  }
void SummarizeEvent(UInt_t eventNum)
 summarize the information for the current event
void SetByteOffset(UInt_t eq, Int_t size)
 set byte offset (equipment header size)
void SuppressErrorMessages(UInt_t errorCode, Bool_t suppr = kTRUE)
 suppress error messages for specific error code
void SuppressErrorEq(UInt_t eq, Bool_t suppr = kTRUE)
 suppress error messages for specific equipment
UInt_t GetNrErrors(UInt_t errorCode, UInt_t eq)
 returns the number of errors for this event for a specific error code and equipment
UInt_t GetNrErrorsAllEq(UInt_t errorCode)
 returns the number of errors for this event for a specific error code and all equipments
UInt_t GetNrErrorsTotal(UInt_t errorCode, UInt_t eq)
 returns the total number of errors for a specific error code and equipment
UInt_t GetNrErrorsTotalAllEq(UInt_t errorCode)
 returns the total number of errors for a specific error code and for all equipments
TGraph* GetConsErrEvent(UInt_t errorCode, UInt_t eq)
 returns a pointer to the graph
TH1F* GetConsErrType(UInt_t eq)
 returns a pointer to the histogram
TH1F* GetConsErrFraction(UInt_t eq)
 creates a new histogram and returns a pointer to it.
 NB!!! Take care of deleting this object later
TH1F* GetConsErrFractionUnScaled(UInt_t eq)
 returns a pointer to the histogram
TGraph* GetConsErrPos(UInt_t errorCode, UInt_t eq)
 returns a pointer to the histogram
UInt_t GetEventErrPosCounter(UInt_t errorCode, UInt_t eq)
 returns the number of errors with bytes information for current event
UInt_t GetEventErrPos(UInt_t index, UInt_t errorCode, UInt_t eq)
 returns the bytes read for the index'th error of current event
UInt_t GetNrErrorCodes()
{return kNrErrorCodes;}
TGText* GetText()
{return fText;}
TGText* GetTextThisEvent(UInt_t eq)
{if (eq<20) return fTextTmp[eq]; else return NULL;}
TGText* GetTextGeneralThisEvent()
{return fTextTmpGeneral;}