1 #ifndef __JCOMPAREHISTOGRAMS__JTESTZERO__
2 #define __JCOMPAREHISTOGRAMS__JTESTZERO__
22 namespace JCOMPAREHISTOGRAMS {
39 JTest_t(
"Zero",
"failure_fraction"),
49 std::istream&
read(std::istream&
in)
override{
63 if (!(dynamic_cast<TH2*>(o1) == NULL) && !(dynamic_cast<TH2*>(o2) == NULL)) {
65 TH2D* h1 =
dynamic_cast<TH2D*
>(o1);
66 TH2D* h2 =
dynamic_cast<TH2D*
>(o2);
Interface to read input and write output for TObject tests.
std::vector< JTestResult > results
Buffer to store results of multiple tests.*/.
Implementation of the Zeros test for histograms with expected low bin contents.
double outliersThreshold
Fraction of bins allowed to fail.
double threshold
threshold p-value to decide if test is passed.
const std::string resultType
result type
const std::string testName
test name
JTestResult JTestZero_2D(TH2 *h1, TH2 *h2, double outliersThreshold, double threshold, std::string testName, std::string parameterName)
Bin-by-Bin test for 2D histograms where a very low number of entries is expected. ...
std::istream & read(std::istream &in) override
Read test parameters from input.
Auxiliary class to define a range between two values.
Implementation of a bin-by-bin compatibility test for 2D histograms with low bin contents.
Structure containing the result of the test.
JTestZero()
Default constructor.
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
void test(TObject *o1, TObject *o2) override
Bin-by-bin comparison for ROOT TH2 histograms, of compatibility with a Poisson pdf of parameter 1...