|
Crombie Tools
|
Class setting verbosity levels. More...
#include <Debug.h>
Inheritance diagram for Debug:Public Types | |
| enum | DebugLevel { eQuiet = 0, eError, eInfo, eDebug } |
| Different possible debug levels. More... | |
Public Member Functions | |
| Debug () | |
| virtual | ~Debug () |
| DebugLevel | GetDebugLevel () |
| Gets the verbosity for a class. More... | |
| template<typename T , typename... V> | |
| void | Message (DebugLevel level, T message, V... more) |
| Sends a message if the verbosity level is appropriate. More... | |
| void | Message (DebugLevel level) |
| void | SetDebugLevel (DebugLevel level) |
| Sets the verbosity for a class. More... | |
Protected Member Functions | |
| void | DisplayFunc (const char *func) |
| Sends the name of the function during debuggin. More... | |
Private Member Functions | |
| template<typename T > | |
| void | OneMessage (DebugLevel level, T message) |
Private Attributes | |
| bool | _printed = false |
| Track if the label has bee printed. More... | |
| DebugLevel | fDebugLevel = eError |
| The verbosity for a class. More... | |
| std::map< DebugLevel, const char * > | mLabels |
| A map setting the tag to give a given debug level. More... | |
Class setting verbosity levels.
Definition at line 21 of file old/CommonTools/interface/Debug.h.
| enum Debug::DebugLevel |
Different possible debug levels.
| Enumerator | |
|---|---|
| eQuiet | Only prints out what ROOT insists on. |
| eError | Prints when it's obvious something goes wrong. |
| eInfo | Prints information that might be interesting. |
| eDebug | Prints debugging information. |
Definition at line 28 of file old/CommonTools/interface/Debug.h.
|
inline |
Definition at line 24 of file old/CommonTools/interface/Debug.h.
Referenced by crombie::Lumi::LumiSelection::add(), crombie::LoadTree::Formulas::add(), crombie::Plotter::Plot::add(), crombie::Hist::Hist::add(), crombie::FileSystem::basename(), crombie::FileConfig::DirectoryInfo::DirectoryInfo(), crombie::FileSystem::dirname(), crombie::Hist::Hist::doscale(), crombie::Plotter::Plot::draw(), crombie::Misc::draw_progress(), crombie::Uncertainty::UncertaintyInfo::exprs(), crombie::FileConfig::FileInfo::FileInfo(), crombie::Uncertainty::operator>>(), crombie::Parse::parse(), crombie::PlotConfig::Plot::Plot(), crombie::Hist::Hist::ratio(), crombie::Hist::Hist::roothist(), crombie::FileConfig::FileConfig::runfiles(), crombie::Selection::Selection::Selection(), and crombie::Uncertainty::SysInfo::SysInfo().
|
inlinevirtual |
Definition at line 25 of file old/CommonTools/interface/Debug.h.
|
protected |
Sends the name of the function during debuggin.
Definition at line 65 of file old/CommonTools/interface/Debug.h.
References eDebug, and Message().
Referenced by FileConfigReader::AddFile(), Plot2D::AddMapping(), PlotBrazil::AddPoint(), PlotBase::BaseCanvas(), PlotFitParameters::ClearFits(), FileConfigReader::CloseFiles(), PlotFitParameters::DoFit(), Plot2D::DoFit(), Plot2D::DoFits(), GetDebugLevel(), FileConfigReader::GetHist(), FileConfigReader::GetHistList(), PlotFitParameters::GetMeans(), PlotBase::LineDrawing(), FileConfigReader::LoadFitResult(), PlotStack::MakeCanvas(), RatioComparison::MakeCompare(), Plot2D::MakeFuncs(), PlotFitParameters::MakeGraphs(), Plot2D::MakeGraphs(), PlotHists::MakeHists(), Plot2D::MapTo(), PlotStack::MergeHistograms(), FileConfigReader::OpenFiles(), HistAnalysis::PlotScaleFactors(), PlotBrazil::ReadConfig(), FileConfigReader::ReadMCConfig(), FileConfigReader::ResetAllConfig(), FileConfigReader::ResetConfig(), FileConfigReader::ReturnFileNames(), FileConfigReader::ScaleBackgrounds(), Plot2D::SetLooseLimits(), and Plot2D::SetParameterLimits().
|
inline |
Gets the verbosity for a class.
Definition at line 39 of file old/CommonTools/interface/Debug.h.
References DisplayFunc(), fDebugLevel, and Message().
| void Debug::Message | ( | DebugLevel | level, |
| T | message, | ||
| V... | more | ||
| ) |
Sends a message if the verbosity level is appropriate.
Definition at line 89 of file old/CommonTools/interface/Debug.h.
References OneMessage().
Referenced by FileConfigReader::AddFile(), InDirectoryHolder::AddInDir(), PlotBase::AddLine(), PlotBrazil::AddPoint(), PlotBase::AddTreeExpr(), PlotBase::AddTreeWeight(), PlotBase::AddWeightExpr(), PlotBase::BaseCanvas(), FileConfigReader::CloseFiles(), DisplayFunc(), PlotFitParameters::DoFit(), Plot2D::DoFits(), PlotBase::DrawCutLines(), YieldDump::DumpYieldFiles(), FileInfo::FileInfo(), GetDebugLevel(), FileConfigReader::GetFileInfo(), FileConfigReader::GetHist(), FileConfigReader::GetHistList(), PlotBase::GetOpts(), PlotBase::LineDrawing(), FileConfigReader::LoadFitResult(), PlotStack::MakeCanvas(), QuickPlot::MakeCanvas(), PlotHists::MakeHists(), LimitTreeMaker::MakeTrees(), Plot2D::MapTo(), PlotStack::MergeHistograms(), FileConfigReader::OpenFiles(), PlotBrazil::ReadConfig(), LimitTreeMaker::ReadExceptionConfig(), FileConfigReader::ReadMCConfig(), FileConfigReader::ReturnFileNames(), FileConfigReader::ScaleBackgrounds(), Corrector::SetCorrectionFile(), Corrector::SetCorrectionHist(), Corrector::SetMinMax(), and SetupCanvas().
| void Debug::Message | ( | DebugLevel | level | ) |
Definition at line 94 of file old/CommonTools/interface/Debug.h.
References _printed, eError, and fDebugLevel.
|
private |
Definition at line 74 of file old/CommonTools/interface/Debug.h.
References _printed, eError, fDebugLevel, and mLabels.
Referenced by Message().
|
inline |
Sets the verbosity for a class.
Definition at line 36 of file old/CommonTools/interface/Debug.h.
References fDebugLevel.
|
private |
Track if the label has bee printed.
Definition at line 60 of file old/CommonTools/interface/Debug.h.
Referenced by Message(), and OneMessage().
|
private |
The verbosity for a class.
Definition at line 59 of file old/CommonTools/interface/Debug.h.
Referenced by GetDebugLevel(), Message(), OneMessage(), and SetDebugLevel().
|
private |
A map setting the tag to give a given debug level.
Definition at line 52 of file old/CommonTools/interface/Debug.h.
Referenced by OneMessage().