ROOT » ROOFIT » ROOFITCORE » RooMsgService::StreamConfig

class RooMsgService::StreamConfig



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() ;


Function Members (Methods)

Data Members

public:
Bool_tactive
stringbaseClassName
stringclassName
Color_tcolor
RooFit::MsgLevelminLevel
stringobjectName
ostream*os
Bool_tprefix
stringtagName
Int_ttopic
Bool_tuniversal

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

Bool_t match(RooFit::MsgLevel level, RooFit::MsgTopic facility, const RooAbsArg* obj)
 Determine if message from given object at given level on given topic is logged
Bool_t match(RooFit::MsgLevel level, RooFit::MsgTopic facility, const TObject* obj)
 Determine if message from given object at given level on given topic is logged
void addTopic(RooFit::MsgTopic newTopic)
void removeTopic(RooFit::MsgTopic oldTopic)