CMS 3D CMS Logo

Public Member Functions | Private Attributes

RooFitGlobalKillSentry Class Reference

#include <RooFitGlobalKillSentry.h>

List of all members.

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.

                                                                     :
            globalKill_(RooMsgService::instance().globalKillBelow())
    {
        RooMsgService::instance().setGlobalKillBelow(level);
    }
RooFitGlobalKillSentry::~RooFitGlobalKillSentry ( ) [inline]

Definition at line 16 of file RooFitGlobalKillSentry.h.

References globalKill_, and instance.

                                  {
            RooMsgService::instance().setGlobalKillBelow(globalKill_);
        }

Member Data Documentation

RooFit::MsgLevel RooFitGlobalKillSentry::globalKill_ [private]

Definition at line 20 of file RooFitGlobalKillSentry.h.

Referenced by ~RooFitGlobalKillSentry().