Jpp
debug
the software that should make you happy
|
Implementation of a bin-by-bin Chi2 test for 2D histograms. More...
#include <JTestChi2_Bin.hh>
Public Member Functions | |
JTestChi2_Bin () | |
Default constructor. More... | |
void | test (const TObject *o1, const TObject *o2) override |
Tests the statistical compatibility of two ROOT 2D histograms. More... | |
std::istream & | read (std::istream &in) override |
Read test parameters from input. More... | |
virtual std::ostream & | write (std::ostream &out, const char delimiter=' ', const bool onlyFailures=false) const |
Write test result to output. More... | |
virtual void | save (TFile *f, const std::string &path, const bool onlyFailures=false) const |
Writes the test result to root file. More... | |
const std::string & | getTestName () const |
Get test name. More... | |
const std::string & | getResultType () const |
Get result type. More... | |
Protected Attributes | |
const std::string | testName |
test name More... | |
const std::string | resultType |
test result type More... | |
Private Attributes | |
double | chi2Threshold |
threshold chi2-value to decide if test is passed for a bin. More... | |
double | outliersThreshold |
fraction of bins allowed to fail the test. More... | |
Implementation of a bin-by-bin Chi2 test for 2D histograms.
This class is derived from the abstract class JTest_t(). For a general description of the implementation of this and other tests derived from JTest_t(), see its documentation.
Definition at line 27 of file JTestChi2_Bin.hh.
|
inline |
Default constructor.
Definition at line 35 of file JTestChi2_Bin.hh.
|
inlineoverridevirtual |
Tests the statistical compatibility of two ROOT 2D histograms.
o1 | First histogram |
o2 | Second histogram |
Implements JCOMPAREHISTOGRAMS::JTest_t.
Definition at line 46 of file JTestChi2_Bin.hh.
|
inlineoverridevirtual |
Read test parameters from input.
in | input stream |
Implements JCOMPAREHISTOGRAMS::JTest_t.
Definition at line 135 of file JTestChi2_Bin.hh.
|
inlinevirtualinherited |
Write test result to output.
out | output stream |
delimiter | field delimiter |
onlyFailures | if true, write only failures. |
Definition at line 84 of file JTest_t.hh.
|
inlinevirtualinherited |
Writes the test result to root file.
f | A ROOT file |
path | Path in root file. |
onlyFailures | If true, write only failures. |
Definition at line 108 of file JTest_t.hh.
|
inlineinherited |
|
inlineinherited |
|
private |
threshold chi2-value to decide if test is passed for a bin.
Definition at line 155 of file JTestChi2_Bin.hh.
|
private |
fraction of bins allowed to fail the test.
Definition at line 156 of file JTestChi2_Bin.hh.
|
protectedinherited |
test name
Definition at line 180 of file JTest_t.hh.
|
protectedinherited |
test result type
Definition at line 181 of file JTest_t.hh.