CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10/src/HiggsAnalysis/CombinedLimit/interface/RooFitGlobalKillSentry.h

Go to the documentation of this file.
00001 #ifndef HiggsAnalysis_CombinedLimit_RooFitGlobalKillSentry_
00002 #define HiggsAnalysis_CombinedLimit_RooFitGlobalKillSentry_
00003 
00004 #include <RooMsgService.h>
00005 
00008 class RooFitGlobalKillSentry {
00009     public:
00010         RooFitGlobalKillSentry(RooFit::MsgLevel level = RooFit::WARNING) :
00011             globalKill_(RooMsgService::instance().globalKillBelow())
00012     {
00013         RooMsgService::instance().setGlobalKillBelow(level);
00014     }
00015 
00016         ~RooFitGlobalKillSentry() {
00017             RooMsgService::instance().setGlobalKillBelow(globalKill_);
00018         }
00019     private:
00020         RooFit::MsgLevel globalKill_;
00021 };
00022 #endif