The RooMsgService class is a singleton class that organizes informational, debugging, warning and errors messages generated by the RooFit core code.
Each message generated by the core has a message level (DEBUG,INFO,PROGRESS,WARNING,ERROR or FATAL), an originating object, and a 'topic'. Currently implemented topics are "Generation","Plotting", "Integration", "Minimization" and "Workspace" and "ChangeTracking".
The RooMsgService class allows to filter and redirect messages into 'streams' according to message level, topic, (base) class of originating object, name of originating object and based on attribute labels attached to individual objects.
The current default configuration creates streams for all messages at WARNING level or higher (e.g. ERROR and FATAL) and for all INFO message on topics Generation,Plotting, Integration and Minimization and redirects them to stdout. Users can create additional streams for logging of e.g. DEBUG messages on particular topics or objects and or redirect streams to C++ streams or files.
The singleton instance is accessible through RooMsgService::instance() ;
virtual | ~RooMsgService() |
void | TObject::AbstractMethod(const char* method) const |
Int_t | addStream(RooFit::MsgLevel level, const RooCmdArg& arg1 = RooCmdArg(), const RooCmdArg& arg2 = RooCmdArg(), const RooCmdArg& arg3 = RooCmdArg(), const RooCmdArg& arg4 = RooCmdArg(), const RooCmdArg& arg5 = RooCmdArg(), const RooCmdArg& arg6 = RooCmdArg()) |
static Bool_t | anyDebug() |
virtual void | TObject::AppendPad(Option_t* option = "") |
virtual void | TObject::Browse(TBrowser* b) |
static TClass* | Class() |
static TClass* | TObject::Class() |
virtual const char* | TObject::ClassName() const |
static void | cleanup() |
virtual void | TObject::Clear(Option_t* = "") |
void | clearErrorCount() |
virtual TObject* | TObject::Clone(const char* newname = "") const |
virtual Int_t | TObject::Compare(const TObject* obj) const |
virtual void | TObject::Copy(TObject& object) const |
virtual void | TObject::Delete(Option_t* option = "")MENU |
void | deleteStream(Int_t id) |
virtual Int_t | TObject::DistancetoPrimitive(Int_t px, Int_t py) |
virtual void | TObject::Draw(Option_t* option = "") |
virtual void | TObject::DrawClass() constMENU |
virtual TObject* | TObject::DrawClone(Option_t* option = "") constMENU |
virtual void | TObject::Dump() constMENU |
virtual void | TObject::Error(const char* method, const char* msgfmt) const |
Int_t | errorCount() const |
virtual void | TObject::Execute(const char* method, const char* params, Int_t* error = 0) |
virtual void | TObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0) |
virtual void | TObject::ExecuteEvent(Int_t event, Int_t px, Int_t py) |
virtual void | TObject::Fatal(const char* method, const char* msgfmt) const |
virtual TObject* | TObject::FindObject(const char* name) const |
virtual TObject* | TObject::FindObject(const TObject* obj) const |
virtual Option_t* | TObject::GetDrawOption() const |
static Long_t | TObject::GetDtorOnly() |
virtual const char* | TObject::GetIconName() const |
virtual const char* | TObject::GetName() const |
virtual char* | TObject::GetObjectInfo(Int_t px, Int_t py) const |
static Bool_t | TObject::GetObjectStat() |
virtual Option_t* | TObject::GetOption() const |
RooMsgService::StreamConfig& | getStream(Int_t id) |
Bool_t | getStreamStatus(Int_t id) const |
virtual const char* | TObject::GetTitle() const |
virtual UInt_t | TObject::GetUniqueID() const |
RooFit::MsgLevel | globalKillBelow() const |
virtual Bool_t | TObject::HandleTimer(TTimer* timer) |
virtual ULong_t | TObject::Hash() const |
virtual void | TObject::Info(const char* method, const char* msgfmt) const |
virtual Bool_t | TObject::InheritsFrom(const char* classname) const |
virtual Bool_t | TObject::InheritsFrom(const TClass* cl) const |
virtual void | TObject::Inspect() constMENU |
static RooMsgService& | instance() |
void | TObject::InvertBit(UInt_t f) |
virtual TClass* | IsA() const |
virtual TClass* | TObject::IsA() const |
Bool_t | isActive(const RooAbsArg* self, RooFit::MsgTopic facility, RooFit::MsgLevel level) |
Bool_t | isActive(const TObject* self, RooFit::MsgTopic facility, RooFit::MsgLevel level) |
virtual Bool_t | TObject::IsEqual(const TObject* obj) const |
virtual Bool_t | TObject::IsFolder() const |
Bool_t | TObject::IsOnHeap() const |
virtual Bool_t | TObject::IsSortable() const |
Bool_t | TObject::IsZombie() const |
ostream& | log(const RooAbsArg* self, RooFit::MsgLevel level, RooFit::MsgTopic facility, Bool_t forceSkipPrefix = kFALSE) |
ostream& | log(const TObject* self, RooFit::MsgLevel level, RooFit::MsgTopic facility, Bool_t forceSkipPrefix = kFALSE) |
virtual void | TObject::ls(Option_t* option = "") const |
void | TObject::MayNotUse(const char* method) const |
virtual Bool_t | TObject::Notify() |
Int_t | numStreams() const |
static void | TObject::operator delete(void* ptr) |
static void | TObject::operator delete(void* ptr, void* vp) |
static void | TObject::operator delete[](void* ptr) |
static void | TObject::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) |
RooMsgService& | operator=(const RooMsgService&) |
TObject& | TObject::operator=(const TObject& rhs) |
virtual void | TObject::Paint(Option_t* option = "") |
virtual void | TObject::Pop() |
virtual void | Print(Option_t* options = 0) const |
virtual void | TObject::Print(Option_t* option = "") const |
virtual Int_t | TObject::Read(const char* name) |
virtual void | TObject::RecursiveRemove(TObject* obj) |
void | reset() |
void | TObject::ResetBit(UInt_t f) |
virtual void | TObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU |
virtual void | TObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "") |
void | TObject::SetBit(UInt_t f) |
void | TObject::SetBit(UInt_t f, Bool_t set) |
virtual void | TObject::SetDrawOption(Option_t* option = "")MENU |
static void | TObject::SetDtorOnly(void* obj) |
void | setGlobalKillBelow(RooFit::MsgLevel level) |
static void | TObject::SetObjectStat(Bool_t stat) |
void | setSilentMode(Bool_t flag) |
void | setStreamStatus(Int_t id, Bool_t active) |
virtual void | TObject::SetUniqueID(UInt_t uid) |
virtual void | ShowMembers(TMemberInspector& insp, char* parent) |
virtual void | TObject::ShowMembers(TMemberInspector& insp, char* parent) |
void | showPid(Bool_t flag) |
Bool_t | silentMode() const |
virtual void | Streamer(TBuffer& b) |
virtual void | TObject::Streamer(TBuffer& b) |
void | StreamerNVirtual(TBuffer& b) |
void | TObject::StreamerNVirtual(TBuffer& b) |
virtual void | TObject::SysError(const char* method, const char* msgfmt) const |
Bool_t | TObject::TestBit(UInt_t f) const |
Int_t | TObject::TestBits(UInt_t f) const |
virtual void | TObject::UseCurrentStyle() |
virtual void | TObject::Warning(const char* method, const char* msgfmt) const |
virtual Int_t | TObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) |
virtual Int_t | TObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const |
RooMsgService() | |
RooMsgService(const RooMsgService&) | |
Int_t | activeStream(const RooAbsArg* self, RooFit::MsgTopic facility, RooFit::MsgLevel level) |
Int_t | activeStream(const TObject* self, RooFit::MsgTopic facility, RooFit::MsgLevel level) |
virtual void | TObject::DoError(int level, const char* location, const char* fmt, va_list va) const |
void | TObject::MakeZombie() |
enum TObject::EStatusBits { | kCanDelete | |
kMustCleanup | ||
kObjInCanvas | ||
kIsReferenced | ||
kHasUUID | ||
kCannotPick | ||
kNoContextMenu | ||
kInvalidObject | ||
}; | ||
enum TObject::[unnamed] { | kIsOnHeap | |
kNotDeleted | ||
kZombie | ||
kBitMask | ||
kSingleKey | ||
kOverwrite | ||
kWriteDelete | ||
}; |
static Int_t | _debugCount | |
map<int,std::string> | _levelNames | |
map<int,std::string> | _topicNames |
Cleanup function called by atexit() handler installed by RooSentinel to delete all global object upon program termination
Constructor. Defines names of message levels and mapping of topic codes to topic names Install default message streams.
Add a message logging stream for message with given RooFit::MsgLevel or higher (i.e. more severe) This method accepts the following arguments to configure the stream Output Style options Prefix(Bool_t flag=kTRUE) -- Prefix all messages in this stream with Topic/Originator information Filtering options Topic(const char*) -- Restrict stream to messages on given topic ObjectName(const char*) -- Restrict stream to messages from object with given name ClassName(const char*) -- Restrict stream to messages from objects with given class name BaseClassName(const char*)-- Restrict stream to messages from objects with given base class name LabelName(const chat*) -- Restrict stream to messages from objects setAtrribute(const char*) tag with given name Output redirection options OutputFile(const char*) -- Send output to file with given name. Multiple streams can write to same file. OutputStream(ostream&) -- Send output to given C++ stream. Multiple message streams can write to same c++ stream The return value is the unique ID code of the defined stream
Check if logging is active for given object/topic/RooFit::MsgLevel combination
Check if logging is active for given object/topic/RooFit::MsgLevel combination
Find appropriate logging stream for message from given object with given topic and message level
Find appropriate logging stream for message from given object with given topic and message level
Log error message associated with RooAbsArg object self at given level and topic. If skipPrefix is true the standard RooMsgService prefix is not added.
Log error message associated with TObject object self at given level and topic. If skipPrefix is true the standard RooMsgService prefix is not added.
Print configuration of message service. If "v" option is given also inactive streams are listed
Print level support for RooFit-related messages that are not routed through RooMsgService (such as Minuit printouts)
{ return _silentMode ; }