RooMsgService Class Reference

#include <RooMsgService.h>

Inheritance diagram for RooMsgService:

TObject TObject List of all members.

Public Member Functions

virtual ~RooMsgService ()
Int_t addStream (RooFit::MsgLevel level, const RooCmdArg &arg1=RooCmdArg(), const RooCmdArg &arg2=RooCmdArg(), const RooCmdArg &arg3=RooCmdArg(), const RooCmdArg &arg4=RooCmdArg(), const RooCmdArg &arg5=RooCmdArg(), const RooCmdArg &arg6=RooCmdArg())
void deleteStream (Int_t id)
StreamConfiggetStream (Int_t id)
Int_t numStreams () const
void setStreamStatus (Int_t id, Bool_t active)
Bool_t getStreamStatus (Int_t id) const
void reset ()
void setGlobalKillBelow (RooFit::MsgLevel level)
RooFit::MsgLevel globalKillBelow () const
void Print (Option_t *options=0) const
void showPid (Bool_t flag)
ostream & log (const RooAbsArg *self, RooFit::MsgLevel level, RooFit::MsgTopic facility, Bool_t forceSkipPrefix=kFALSE)
ostream & log (const TObject *self, RooFit::MsgLevel level, RooFit::MsgTopic facility, Bool_t forceSkipPrefix=kFALSE)
Bool_t isActive (const RooAbsArg *self, RooFit::MsgTopic facility, RooFit::MsgLevel level)
Bool_t isActive (const TObject *self, RooFit::MsgTopic facility, RooFit::MsgLevel level)
Bool_t silentMode () const
void setSilentMode (Bool_t flag)
Int_t errorCount () const
void clearErrorCount ()
void saveState ()
void restoreState ()
RooWorkspacedebugWorkspace ()
Int_tdebugCode ()
virtual ~RooMsgService ()
Int_t addStream (RooFit::MsgLevel level, const RooCmdArg &arg1=RooCmdArg(), const RooCmdArg &arg2=RooCmdArg(), const RooCmdArg &arg3=RooCmdArg(), const RooCmdArg &arg4=RooCmdArg(), const RooCmdArg &arg5=RooCmdArg(), const RooCmdArg &arg6=RooCmdArg())
void deleteStream (Int_t id)
StreamConfiggetStream (Int_t id)
Int_t numStreams () const
void setStreamStatus (Int_t id, Bool_t active)
Bool_t getStreamStatus (Int_t id) const
void reset ()
void setGlobalKillBelow (RooFit::MsgLevel level)
RooFit::MsgLevel globalKillBelow () const
void Print (Option_t *options=0) const
void showPid (Bool_t flag)
ostream & log (const RooAbsArg *self, RooFit::MsgLevel level, RooFit::MsgTopic facility, Bool_t forceSkipPrefix=kFALSE)
ostream & log (const TObject *self, RooFit::MsgLevel level, RooFit::MsgTopic facility, Bool_t forceSkipPrefix=kFALSE)
Bool_t isActive (const RooAbsArg *self, RooFit::MsgTopic facility, RooFit::MsgLevel level)
Bool_t isActive (const TObject *self, RooFit::MsgTopic facility, RooFit::MsgLevel level)
Bool_t silentMode () const
void setSilentMode (Bool_t flag)
Int_t errorCount () const
void clearErrorCount ()
void saveState ()
void restoreState ()
RooWorkspacedebugWorkspace ()
Int_tdebugCode ()

Static Public Member Functions

static RooMsgServiceinstance ()
static Bool_t anyDebug ()
static void cleanup ()
static RooMsgServiceinstance ()
static Bool_t anyDebug ()
static void cleanup ()

Public Attributes

std::map< int, std::string_levelNames
std::map< int, std::string_topicNames
std::map< int, std::string_levelNames
std::map< int, std::string_topicNames

Static Public Attributes

static Int_t _debugCount

Protected Member Functions

Int_t activeStream (const RooAbsArg *self, RooFit::MsgTopic facility, RooFit::MsgLevel level)
Int_t activeStream (const TObject *self, RooFit::MsgTopic facility, RooFit::MsgLevel level)
 RooMsgService ()
 RooMsgService (const RooMsgService &)
Int_t activeStream (const RooAbsArg *self, RooFit::MsgTopic facility, RooFit::MsgLevel level)
Int_t activeStream (const TObject *self, RooFit::MsgTopic facility, RooFit::MsgLevel level)
 RooMsgService ()
 RooMsgService (const RooMsgService &)

Protected Attributes

std::vector< StreamConfig_streams
std::stack< std::vector< StreamConfig > > _streamsSaved
std::ostream * _devnull
std::map< std::string, std::ostream * > _files
RooFit::MsgLevel _globMinLevel
RooFit::MsgLevel _lastMsgLevel
Bool_t _silentMode
Bool_t _showPid
Int_t _errorCount
RooWorkspace_debugWorkspace
Int_t _debugCode
std::vector< StreamConfig_streams
std::stack< std::vector< StreamConfig > > _streamsSaved
std::ostream * _devnull
std::map< std::string, std::ostream * > _files
RooWorkspace_debugWorkspace

Static Protected Attributes

static RooMsgService_instance
static RooMsgService_instance

Classes

struct  StreamConfig

Detailed Description

Definition at line 105 of file RooMsgService.h.


Constructor & Destructor Documentation

RooMsgService::~RooMsgService (  )  [virtual]

Definition at line 137 of file RooMsgService.cxx.

References _debugWorkspace, _devnull, and _files.

RooMsgService::RooMsgService (  )  [protected]

Definition at line 88 of file RooMsgService.cxx.

References _debugCode, _debugWorkspace, _devnull, _globMinLevel, _instance, _lastMsgLevel, _levelNames, _showPid, _silentMode, _topicNames, addStream(), RooFit::Caching, RooFit::Contents, RooFit::DataHandling, DEBUG, ERROR, RooFit::Eval, RooFit::FATAL, RooFit::Fitting, RooFit::Generation, gMsgService, RooFit::INFO, RooFit::InputArguments, RooFit::Integration, kFALSE, RooFit::LinkStateMgmt, RooFit::Minimization, RooFit::NumIntegration, RooFit::ObjectHandling, RooFit::Optimization, RooFit::Plotting, RooFit::PROGRESS, RooFit::Topic(), RooFit::Tracing, and WARNING.

Referenced by instance().

RooMsgService::RooMsgService ( const RooMsgService  )  [protected]

virtual RooMsgService::~RooMsgService (  )  [virtual]

RooMsgService::RooMsgService (  )  [protected]

RooMsgService::RooMsgService ( const RooMsgService  )  [protected]


Member Function Documentation

RooMsgService & RooMsgService::instance (  )  [static]

Definition at line 359 of file RooMsgService.cxx.

References _instance, RooSentinel::activate(), and RooMsgService().

Referenced by RooStats::NumberCountingPdfFactory::AddData(), RooStats::NumberCountingPdfFactory::AddDataWithSideband(), RooStats::NumberCountingPdfFactory::AddModel(), RooStats::SPlot::AddSWeight(), anyDebug(), ClassImp(), RooFitTestUnit::clearSilentMode(), RooStats::MetropolisHastings::ConstructChain(), RooStats::FeldmanCousins::CreateParameterPoints(), DoSPlot(), RooStats::ProfileLikelihoodTestStat::Evaluate(), RooStats::SimpleLikelihoodRatioTestStat::Evaluate(), RooStats::MaxLikelihoodEstimateTestStat::Evaluate(), RooStats::RatioOfProfiledLikelihoodsTestStat::Evaluate(), RooJeffreysPrior::evaluate(), RooStats::NumEventsTestStat::Evaluate(), RooProfileLL::evaluate(), FourBinInstructional(), G__G__RooFitCore3_244_0_1(), G__setup_memfuncRooMsgService(), RooStats::ToyMCSamplerOld::GenerateToyData(), RooStats::ToyMCSamplerOld::GetSamplingDistribution(), RooStats::BernsteinCorrection::ImportCorrectedPdf(), RooStats::LikelihoodInterval::IsInInterval(), RooWorkspace::Print(), rf506_msgservice(), rf901_numintconfig(), RooMinimizer::RooMinimizer(), RooMinuit::RooMinuit(), rs401d_FeldmanCousins(), rs701_BayesianCalculator(), RooMCStudy::run(), RooFitTestUnit::runTest(), RooFitTestUnit::setSilentMode(), RooStats::SimpleLikelihoodRatioTestStat::SimpleLikelihoodRatioTestStat(), and stressRooFit().

Bool_t RooMsgService::anyDebug (  )  [static]

Definition at line 157 of file RooMsgService.cxx.

References _debugCount, and instance().

Referenced by G__G__RooFitCore3_244_0_2(), and G__setup_memfuncRooMsgService().

Int_t RooMsgService::addStream ( RooFit::MsgLevel  level,
const RooCmdArg arg1 = RooCmdArg(),
const RooCmdArg arg2 = RooCmdArg(),
const RooCmdArg arg3 = RooCmdArg(),
const RooCmdArg arg4 = RooCmdArg(),
const RooCmdArg arg5 = RooCmdArg(),
const RooCmdArg arg6 = RooCmdArg() 
)

Definition at line 177 of file RooMsgService.cxx.

References _debugCount, _files, _streams, DEBUG, RooCmdConfig::defineInt(), RooCmdConfig::defineMutex(), RooCmdConfig::defineObject(), RooCmdConfig::defineString(), Form(), RooCmdConfig::getInt(), TObject::GetName(), RooCmdConfig::getObject(), RooCmdConfig::getString(), kBlack, kTRUE, l, RooCmdConfig::ok(), prefix, RooCmdConfig::process(), and size.

Referenced by rf506_msgservice(), rf901_numintconfig(), RooMsgService(), and stressRooFit().

void RooMsgService::deleteStream ( Int_t  id  ) 

Definition at line 307 of file RooMsgService.cxx.

References _debugCount, _streams, and DEBUG.

StreamConfig& RooMsgService::getStream ( Int_t  id  )  [inline]

Definition at line 151 of file RooMsgService.h.

References _streams.

Referenced by rf506_msgservice().

Int_t RooMsgService::numStreams (  )  const [inline]

Definition at line 153 of file RooMsgService.h.

References _streams.

Referenced by RooFitTestUnit::clearSilentMode(), and RooFitTestUnit::setSilentMode().

void RooMsgService::setStreamStatus ( Int_t  id,
Bool_t  active 
)

Definition at line 325 of file RooMsgService.cxx.

References _debugCount, _streams, and DEBUG.

Referenced by RooFitTestUnit::clearSilentMode(), rs401d_FeldmanCousins(), and RooFitTestUnit::setSilentMode().

Bool_t RooMsgService::getStreamStatus ( Int_t  id  )  const

Definition at line 345 of file RooMsgService.cxx.

References _streams, and kFALSE.

void RooMsgService::reset (  )  [inline]

Definition at line 157 of file RooMsgService.h.

References cleanup().

Referenced by rf506_msgservice().

void RooMsgService::setGlobalKillBelow ( RooFit::MsgLevel  level  )  [inline]

Definition at line 159 of file RooMsgService.h.

References _globMinLevel.

Referenced by RooStats::NumberCountingPdfFactory::AddData(), RooStats::NumberCountingPdfFactory::AddDataWithSideband(), RooStats::NumberCountingPdfFactory::AddModel(), ClassImp(), RooStats::MetropolisHastings::ConstructChain(), RooStats::FeldmanCousins::CreateParameterPoints(), RooStats::ProfileLikelihoodTestStat::Evaluate(), RooStats::SimpleLikelihoodRatioTestStat::Evaluate(), RooStats::MaxLikelihoodEstimateTestStat::Evaluate(), RooStats::RatioOfProfiledLikelihoodsTestStat::Evaluate(), RooJeffreysPrior::evaluate(), RooStats::NumEventsTestStat::Evaluate(), FourBinInstructional(), RooStats::ToyMCSamplerOld::GenerateToyData(), RooStats::ToyMCSamplerOld::GetSamplingDistribution(), RooStats::BernsteinCorrection::ImportCorrectedPdf(), RooStats::LikelihoodInterval::IsInInterval(), RooWorkspace::Print(), rs701_BayesianCalculator(), RooMCStudy::run(), and RooStats::SimpleLikelihoodRatioTestStat::SimpleLikelihoodRatioTestStat().

RooFit::MsgLevel RooMsgService::globalKillBelow (  )  const [inline]

Definition at line 160 of file RooMsgService.h.

References _globMinLevel.

Referenced by RooStats::SPlot::AddSWeight(), ClassImp(), RooStats::MetropolisHastings::ConstructChain(), RooStats::FeldmanCousins::CreateParameterPoints(), RooStats::ProfileLikelihoodTestStat::Evaluate(), RooStats::SimpleLikelihoodRatioTestStat::Evaluate(), RooStats::MaxLikelihoodEstimateTestStat::Evaluate(), RooStats::RatioOfProfiledLikelihoodsTestStat::Evaluate(), RooJeffreysPrior::evaluate(), FourBinInstructional(), RooStats::ToyMCSamplerOld::GenerateToyData(), RooStats::ToyMCSamplerOld::GetSamplingDistribution(), RooStats::LikelihoodInterval::IsInInterval(), RooWorkspace::Print(), RooMCStudy::run(), and RooStats::SimpleLikelihoodRatioTestStat::SimpleLikelihoodRatioTestStat().

void RooMsgService::Print ( Option_t options = 0  )  const [virtual]

Reimplemented from TObject.

Definition at line 547 of file RooMsgService.cxx.

References _levelNames, _streams, _topicNames, active, i, kFALSE, and kTRUE.

Referenced by rf506_msgservice().

void RooMsgService::showPid ( Bool_t  flag  )  [inline]

Definition at line 163 of file RooMsgService.h.

References _showPid.

ostream & RooMsgService::log ( const RooAbsArg self,
RooFit::MsgLevel  level,
RooFit::MsgTopic  facility,
Bool_t  forceSkipPrefix = kFALSE 
)

Definition at line 480 of file RooMsgService.cxx.

References _devnull, _errorCount, _lastMsgLevel, _levelNames, _showPid, _streams, _topicNames, activeStream(), ERROR, flush, TSystem::GetPid(), gSystem, prefix, and RooFit::PROGRESS.

ostream & RooMsgService::log ( const TObject self,
RooFit::MsgLevel  level,
RooFit::MsgTopic  facility,
Bool_t  forceSkipPrefix = kFALSE 
)

Definition at line 517 of file RooMsgService.cxx.

References _devnull, _errorCount, _levelNames, _showPid, _streams, _topicNames, activeStream(), ERROR, flush, TSystem::GetPid(), gSystem, and prefix.

Bool_t RooMsgService::isActive ( const RooAbsArg self,
RooFit::MsgTopic  facility,
RooFit::MsgLevel  level 
)

Definition at line 392 of file RooMsgService.cxx.

References activeStream().

Bool_t RooMsgService::isActive ( const TObject self,
RooFit::MsgTopic  facility,
RooFit::MsgLevel  level 
)

Definition at line 401 of file RooMsgService.cxx.

References activeStream().

void RooMsgService::cleanup (  )  [static]

Definition at line 75 of file RooMsgService.cxx.

References _instance.

Referenced by CleanUpRooFitAtExit(), G__G__RooFitCore3_244_0_18(), G__setup_memfuncRooMsgService(), and reset().

Bool_t RooMsgService::silentMode (  )  const [inline]

Definition at line 178 of file RooMsgService.h.

References _silentMode.

Referenced by RooProfileLL::evaluate().

void RooMsgService::setSilentMode ( Bool_t  flag  )  [inline]

Definition at line 179 of file RooMsgService.h.

References _silentMode.

Referenced by RooFitTestUnit::clearSilentMode(), DoSPlot(), RooProfileLL::evaluate(), and RooFitTestUnit::setSilentMode().

Int_t RooMsgService::errorCount (  )  const [inline]

Definition at line 181 of file RooMsgService.h.

References _errorCount.

void RooMsgService::clearErrorCount (  )  [inline]

Definition at line 182 of file RooMsgService.h.

References _errorCount.

Referenced by RooFitTestUnit::runTest().

void RooMsgService::saveState (  ) 

Definition at line 373 of file RooMsgService.cxx.

References _streams, and _streamsSaved.

void RooMsgService::restoreState (  ) 

Definition at line 382 of file RooMsgService.cxx.

References _streams, and _streamsSaved.

RooWorkspace * RooMsgService::debugWorkspace (  ) 

Definition at line 166 of file RooMsgService.cxx.

References _debugWorkspace.

Int_t& RooMsgService::debugCode (  )  [inline]

Definition at line 189 of file RooMsgService.h.

References _debugCode.

Int_t RooMsgService::activeStream ( const RooAbsArg self,
RooFit::MsgTopic  facility,
RooFit::MsgLevel  level 
) [protected]

Definition at line 410 of file RooMsgService.cxx.

References _globMinLevel, _streams, i, and match().

Referenced by isActive(), and log().

Int_t RooMsgService::activeStream ( const TObject self,
RooFit::MsgTopic  facility,
RooFit::MsgLevel  level 
) [protected]

Definition at line 425 of file RooMsgService.cxx.

References _globMinLevel, _streams, i, and match().

static RooMsgService& RooMsgService::instance (  )  [static]

static Bool_t RooMsgService::anyDebug (  )  [static]

Int_t RooMsgService::addStream ( RooFit::MsgLevel  level,
const RooCmdArg arg1 = RooCmdArg(),
const RooCmdArg arg2 = RooCmdArg(),
const RooCmdArg arg3 = RooCmdArg(),
const RooCmdArg arg4 = RooCmdArg(),
const RooCmdArg arg5 = RooCmdArg(),
const RooCmdArg arg6 = RooCmdArg() 
)

void RooMsgService::deleteStream ( Int_t  id  ) 

StreamConfig& RooMsgService::getStream ( Int_t  id  )  [inline]

Definition at line 151 of file RooMsgService.h.

References _streams.

Int_t RooMsgService::numStreams (  )  const [inline]

Definition at line 153 of file RooMsgService.h.

References _streams.

void RooMsgService::setStreamStatus ( Int_t  id,
Bool_t  active 
)

Bool_t RooMsgService::getStreamStatus ( Int_t  id  )  const

void RooMsgService::reset (  )  [inline]

Definition at line 157 of file RooMsgService.h.

References cleanup().

void RooMsgService::setGlobalKillBelow ( RooFit::MsgLevel  level  )  [inline]

Definition at line 159 of file RooMsgService.h.

References _globMinLevel.

RooFit::MsgLevel RooMsgService::globalKillBelow (  )  const [inline]

Definition at line 160 of file RooMsgService.h.

References _globMinLevel.

void RooMsgService::Print ( Option_t options = 0  )  const [virtual]

Reimplemented from TObject.

void RooMsgService::showPid ( Bool_t  flag  )  [inline]

Definition at line 163 of file RooMsgService.h.

References _showPid.

ostream& RooMsgService::log ( const RooAbsArg self,
RooFit::MsgLevel  level,
RooFit::MsgTopic  facility,
Bool_t  forceSkipPrefix = kFALSE 
)

ostream& RooMsgService::log ( const TObject self,
RooFit::MsgLevel  level,
RooFit::MsgTopic  facility,
Bool_t  forceSkipPrefix = kFALSE 
)

Bool_t RooMsgService::isActive ( const RooAbsArg self,
RooFit::MsgTopic  facility,
RooFit::MsgLevel  level 
)

Bool_t RooMsgService::isActive ( const TObject self,
RooFit::MsgTopic  facility,
RooFit::MsgLevel  level 
)

static void RooMsgService::cleanup (  )  [static]

Bool_t RooMsgService::silentMode (  )  const [inline]

Definition at line 178 of file RooMsgService.h.

References _silentMode.

void RooMsgService::setSilentMode ( Bool_t  flag  )  [inline]

Definition at line 179 of file RooMsgService.h.

References _silentMode.

Int_t RooMsgService::errorCount (  )  const [inline]

Definition at line 181 of file RooMsgService.h.

References _errorCount.

void RooMsgService::clearErrorCount (  )  [inline]

Definition at line 182 of file RooMsgService.h.

References _errorCount.

void RooMsgService::saveState (  ) 

void RooMsgService::restoreState (  ) 

RooWorkspace* RooMsgService::debugWorkspace (  ) 

Int_t& RooMsgService::debugCode (  )  [inline]

Definition at line 189 of file RooMsgService.h.

References _debugCode.

Int_t RooMsgService::activeStream ( const RooAbsArg self,
RooFit::MsgTopic  facility,
RooFit::MsgLevel  level 
) [protected]

Int_t RooMsgService::activeStream ( const TObject self,
RooFit::MsgTopic  facility,
RooFit::MsgLevel  level 
) [protected]


Member Data Documentation

Int_t RooMsgService::_debugCount [static]

Definition at line 171 of file RooMsgService.h.

Referenced by addStream(), anyDebug(), deleteStream(), G__setup_memvarRooMsgService(), and setStreamStatus().

std::map<int,std::string> RooMsgService::_levelNames

Definition at line 172 of file RooMsgService.h.

Referenced by log(), Print(), and RooMsgService().

std::map<int,std::string> RooMsgService::_topicNames

Definition at line 173 of file RooMsgService.h.

Referenced by log(), Print(), and RooMsgService().

std::vector<StreamConfig> RooMsgService::_streams [protected]

Definition at line 196 of file RooMsgService.h.

Referenced by activeStream(), addStream(), deleteStream(), getStream(), getStreamStatus(), log(), numStreams(), Print(), restoreState(), saveState(), and setStreamStatus().

std::stack<std::vector<StreamConfig> > RooMsgService::_streamsSaved [protected]

Definition at line 197 of file RooMsgService.h.

Referenced by restoreState(), and saveState().

std::ostream* RooMsgService::_devnull [protected]

Definition at line 198 of file RooMsgService.h.

Referenced by log(), RooMsgService(), and ~RooMsgService().

std::map<std::string,std::ostream*> RooMsgService::_files [protected]

Definition at line 200 of file RooMsgService.h.

Referenced by addStream(), and ~RooMsgService().

RooFit::MsgLevel RooMsgService::_globMinLevel [protected]

Definition at line 201 of file RooMsgService.h.

Referenced by activeStream(), globalKillBelow(), RooMsgService(), and setGlobalKillBelow().

RooFit::MsgLevel RooMsgService::_lastMsgLevel [protected]

Definition at line 202 of file RooMsgService.h.

Referenced by log(), and RooMsgService().

Bool_t RooMsgService::_silentMode [protected]

Definition at line 204 of file RooMsgService.h.

Referenced by RooMsgService(), setSilentMode(), and silentMode().

Bool_t RooMsgService::_showPid [protected]

Definition at line 205 of file RooMsgService.h.

Referenced by log(), RooMsgService(), and showPid().

Int_t RooMsgService::_errorCount [protected]

Definition at line 207 of file RooMsgService.h.

Referenced by clearErrorCount(), errorCount(), and log().

RooMsgService * RooMsgService::_instance [static, protected]

Definition at line 213 of file RooMsgService.h.

Referenced by cleanup(), instance(), and RooMsgService().

RooWorkspace* RooMsgService::_debugWorkspace [protected]

Definition at line 215 of file RooMsgService.h.

Referenced by debugWorkspace(), RooMsgService(), and ~RooMsgService().

Int_t RooMsgService::_debugCode [protected]

Definition at line 217 of file RooMsgService.h.

Referenced by debugCode(), and RooMsgService().

std::map<int,std::string> RooMsgService::_levelNames

Definition at line 172 of file RooMsgService.h.

std::map<int,std::string> RooMsgService::_topicNames

Definition at line 173 of file RooMsgService.h.

std::vector<StreamConfig> RooMsgService::_streams [protected]

Definition at line 196 of file RooMsgService.h.

std::stack<std::vector<StreamConfig> > RooMsgService::_streamsSaved [protected]

Definition at line 197 of file RooMsgService.h.

std::ostream* RooMsgService::_devnull [protected]

Definition at line 198 of file RooMsgService.h.

std::map<std::string,std::ostream*> RooMsgService::_files [protected]

Definition at line 200 of file RooMsgService.h.

RooMsgService* RooMsgService::_instance [static, protected]

Definition at line 213 of file RooMsgService.h.

RooWorkspace* RooMsgService::_debugWorkspace [protected]

Definition at line 215 of file RooMsgService.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:33:55 2011 for ROOT_528-00b_version by  doxygen 1.5.1