22 #include "Riostream.h" 48 fMaxNumberOfEntries(maxNumberOfEntries),
70 AliWarning(Form(
"Reached max number of entries (%d over %d). Printing and resetting.",
103 cout <<
"No message" << endl;
156 if (list->IsEmpty())
return 1;
162 while ( ( currObj = next() ) )
167 AliFatal(Form(
"object named \"%s\" is a %s instead of an logger!", currObj->GetName(), currObj->ClassName()));
173 while ( logger->
Next(msg,occurance) )
175 for ( Int_t i = 0; i < occurance; ++i )
Bool_t Set(const TString &first, Int_t second)
Int_t GetNofItems() const
Long64_t Merge(TCollection *list)
Bool_t Next(TString &first, Int_t &second)
void Print(Option_t *opt="") const
Int_t Log(const char *message)
Int_t NumberOfEntries() const
Bool_t Next(TString &msg, Int_t &occurance)
Int_t fMaxNumberOfEntries
! after this number, print and reset
#define AliWarning(message)
Substitutes map <string, int> which ALICE does not allow to use.
A logger that keeps track of the number of times a message appeared.
Int_t Get(const TString &first) const
AliMUONStringIntMap * fLog
! map from message to number of times the message was issued
virtual void Print(const char *="") const
#define AliFatal(message)
virtual void Clear(Option_t *="")
void Clear(Option_t *="")