Switches the message service to a different level while the instance is alive.
Can also temporarily activate / deactivate message topics. Use as
Definition at line 39 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::StreamConfig > | fOldConf |
RooFit::MsgLevel | fOldKillBelow |
#include <RooHelpers.h>
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] | lvl | The desired message level. Defaults to verbose. |
[in] | extraTopics | Extra topics to be switched on. These will only switched on in the last stream to prevent all streams are printing. |
[in] | removeTopics | Message topics to be switched off |
[in] | overrideExternalLevel | Override the user message level. |
Definition at line 24 of file RooHelpers.cxx.
RooHelpers::LocalChangeMsgLevel::~LocalChangeMsgLevel | ( | ) |
Definition at line 43 of file RooHelpers.cxx.
|
private |
Definition at line 56 of file RooHelpers.h.
|
private |
Definition at line 55 of file RooHelpers.h.
|
private |
Definition at line 54 of file RooHelpers.h.