CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
RooFitGlobalKillSentry Class Reference

#include <RooFitGlobalKillSentry.h>

Public Member Functions

 RooFitGlobalKillSentry (RooFit::MsgLevel level=RooFit::WARNING)
 
 ~RooFitGlobalKillSentry ()
 

Private Attributes

RooFit::MsgLevel globalKill_
 

Detailed Description

This class sets the global kill for RooFit messages to some value when created, and resets it to the old value when destroyed.

Definition at line 8 of file RooFitGlobalKillSentry.h.

Constructor & Destructor Documentation

RooFitGlobalKillSentry::RooFitGlobalKillSentry ( RooFit::MsgLevel  level = RooFit::WARNING)
inline

Definition at line 10 of file RooFitGlobalKillSentry.h.

References instance, and testEve_cfg::level.

10  :
11  globalKill_(RooMsgService::instance().globalKillBelow())
12  {
13  RooMsgService::instance().setGlobalKillBelow(level);
14  }
static PFTauRenderPlugin instance
tuple level
Definition: testEve_cfg.py:34
RooFitGlobalKillSentry::~RooFitGlobalKillSentry ( )
inline

Definition at line 16 of file RooFitGlobalKillSentry.h.

References globalKill_, and instance.

16  {
17  RooMsgService::instance().setGlobalKillBelow(globalKill_);
18  }
static PFTauRenderPlugin instance

Member Data Documentation

RooFit::MsgLevel RooFitGlobalKillSentry::globalKill_
private

Definition at line 20 of file RooFitGlobalKillSentry.h.

Referenced by ~RooFitGlobalKillSentry().