Logo ROOT  
Reference Guide
RooHelpers::LocalChangeMsgLevel Class Reference

Switches the message service to a different level while the instance is alive.

Can also temporarily activate / deactivate message topics. Use as

RooHelpers::LocalChangeMessageLevel changeMsgLvl(RooFit::WARNING);
[ statements that normally generate a lot of output ]

Definition at line 49 of file RooHelpers.h.

Public Member Functions

 LocalChangeMsgLevel (RooFit::MsgLevel lvl=RooFit::DEBUG, unsigned int extraTopics=0u, unsigned int removeTopics=0u, bool overrideExternalLevel=true)
 Change message level (and topics) while this object is alive, reset when it goes out of scope. More...
 ~LocalChangeMsgLevel ()

Private Attributes

int fExtraStream {-1}
std::vector< RooMsgService::StreamConfigfOldConf
RooFit::MsgLevel fOldKillBelow

#include <RooHelpers.h>

Constructor & Destructor Documentation

◆ LocalChangeMsgLevel()

RooHelpers::LocalChangeMsgLevel::LocalChangeMsgLevel ( RooFit::MsgLevel  lvl = RooFit::DEBUG,
unsigned int  extraTopics = 0u,
unsigned int  removeTopics = 0u,
bool  overrideExternalLevel = true 

Change message level (and topics) while this object is alive, reset when it goes out of scope.

[in]lvlThe desired message level. Defaults to verbose.
[in]extraTopicsExtra topics to be switched on. These will only switched on in the last stream to prevent all streams are printing.
[in]removeTopicsMessage topics to be switched off
[in]overrideExternalLevelOverride the user message level.

Definition at line 36 of file RooHelpers.cxx.

◆ ~LocalChangeMsgLevel()

RooHelpers::LocalChangeMsgLevel::~LocalChangeMsgLevel ( )

Definition at line 55 of file RooHelpers.cxx.

Member Data Documentation

◆ fExtraStream

int RooHelpers::LocalChangeMsgLevel::fExtraStream {-1}

Definition at line 78 of file RooHelpers.h.

◆ fOldConf

std::vector<RooMsgService::StreamConfig> RooHelpers::LocalChangeMsgLevel::fOldConf

Definition at line 77 of file RooHelpers.h.

◆ fOldKillBelow

RooFit::MsgLevel RooHelpers::LocalChangeMsgLevel::fOldKillBelow

Definition at line 76 of file RooHelpers.h.

Libraries for RooHelpers::LocalChangeMsgLevel:

The documentation for this class was generated from the following files:
static void output(int code)
Definition: gifencode.c:226
Definition: RooGlobalFunc.h:65
auto * a
Definition: textangle.C:12