Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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

[ statements that normally generate a lot of output ]
#define a(i)
Definition RSha256.hxx:99
Switches the message service to a different level while the instance is alive.
Definition RooHelpers.h:37
static void output()

Definition at line 37 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.
 
 ~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.

Parameters
[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 33 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}
private

Definition at line 52 of file RooHelpers.h.

◆ fOldConf

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

Definition at line 51 of file RooHelpers.h.

◆ fOldKillBelow

RooFit::MsgLevel RooHelpers::LocalChangeMsgLevel::fOldKillBelow
private

Definition at line 50 of file RooHelpers.h.

Libraries for RooHelpers::LocalChangeMsgLevel:

The documentation for this class was generated from the following files: