CbmRoot
|
Class to compare histograms of the QA task with default ones. More...
#include <CbmQaCompare.h>
Classes | |
struct | Result |
Public Member Functions | |
CbmQaCompare (const Obj *pHistL, const Obj *pHistR, int verbose) | |
Constructor. | |
~CbmQaCompare () | |
Destructor. | |
Result | operator() (const std::string &opt, const std::string &optStat="UU") const |
Compares two histograms, returns a comparison status. | |
TCanvas * | GetComparisonCanvas (const std::string &opt) |
Creates a comparison canvas. | |
void | SetObjectLabels (const std::string &labelL, const std::string &labelR) |
Set version lables. | |
Private Attributes | |
const Obj * | fpObjL = nullptr |
Left (new) histogram. | |
const Obj * | fpObjR = nullptr |
Right (default) histogram. | |
std::string | fsLabelL = "this" |
std::string | fsLabelR = "default" |
int | fVerbose = 0 |
Verbosity. | |
Class to compare histograms of the QA task with default ones.
Obj | Root object type |
Definition at line 22 of file CbmQaCompare.h.
CbmQaCompare< Obj >::CbmQaCompare | ( | const Obj * | pHistL, |
const Obj * | pHistR, | ||
int | verbose ) |
Constructor.
pHistL | Left object |
pHistR | Right object |
verbose | Verbosity level |
Definition at line 35 of file CbmQaCompare.cxx.
CbmQaCompare< Obj >::~CbmQaCompare | ( | ) |
Destructor.
Definition at line 45 of file CbmQaCompare.cxx.
TCanvas * CbmQaCompare< Obj >::GetComparisonCanvas | ( | const std::string & | opt | ) |
Creates a comparison canvas.
opt | Canvas options
|
Definition at line 152 of file CbmQaCompare.cxx.
CbmQaCompare< Obj >::Result CbmQaCompare< Obj >::operator() | ( | const std::string & | opt, |
const std::string & | optStat = "UU" ) const |
Compares two histograms, returns a comparison status.
opt | Comparison options
|
optStat | Option for the stat. test (see TH1 documentation) |
Definition at line 52 of file CbmQaCompare.cxx.
References CbmQaCompare< Obj >::Result::fChi2NDF, CbmQaCompare< Obj >::Result::fConsistent, CbmQaCompare< Obj >::Result::fPointByPoint, CbmQaCompare< Obj >::Result::fRatioLo, and CbmQaCompare< Obj >::Result::fRatioUp.
void CbmQaCompare< Obj >::SetObjectLabels | ( | const std::string & | labelL, |
const std::string & | labelR ) |
Set version lables.
labelL | Left object label |
labelR | Right object label |
Definition at line 266 of file CbmQaCompare.cxx.
|
private |
Left (new) histogram.
Definition at line 62 of file CbmQaCompare.h.
|
private |
Right (default) histogram.
Definition at line 63 of file CbmQaCompare.h.
|
private |
Definition at line 64 of file CbmQaCompare.h.
|
private |
Definition at line 65 of file CbmQaCompare.h.
|
private |
Verbosity.
Definition at line 66 of file CbmQaCompare.h.