Implementation of a bin-by-bin compatibility test for histograms with low bin contents.
More...
|
| JTestZero () |
| Default constructor. More...
|
|
void | test (const TObject *o1, const TObject *o2) override |
| Bin-by-bin comparison for ROOT histograms, of compatibility with a Poisson pdf of parameter 1. 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...
|
|
Implementation of a bin-by-bin compatibility test for histograms with low bin contents.
The test loops over all the bins of both histograms and performs the following operations.
-Calculates the probability that the observed bin content for histogram A is obtained from a Poisson of parameter 1.
-Compares the previous result with the threshold
value given as an input parameter. The result is true if the probability is higher than the threshold
.
-Calculates the probability that the observed bin content for histogram B is obtained from a Poisson of parameter 1.
-Compares the previous result with the threshold
value given as an input parameter. The result is true if the probability is higher than the threshold
.
-Compares the results from both bins: If both are true, or both are false, the test is passed. If one is true and the other is false, the test is failed.
At the end of the loop, a failure fraction is computed and compared to the outliersThreshold
parameter. If the failure fraction is above the threshold
, the test is failed.
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 44 of file JTestZero.hh.