1 #ifndef __JCOMPAREHISTOGRAMS__JTESTRUNS_1D__ 
    2 #define __JCOMPAREHISTOGRAMS__JTESTRUNS_1D__ 
   13 namespace JCOMPAREHISTOGRAMS {
 
   38     std::istream& 
read(std::istream& 
in)
 override{ 
 
   52       if (!(dynamic_cast<TH2*>(o1) == NULL) || !(dynamic_cast<TH2*>(o2) == NULL)) {
 
   53         ERROR(
"For 2D histograms call JTestRuns_2D: " << o1->GetName() << endl);
 
   55       } 
else if (!(dynamic_cast<TH1*>(o1) == NULL) && !(
dynamic_cast<TH1*
>(o2) == NULL)) {
 
   57         TH1D* 
h1 =  
dynamic_cast<TH1D*
>(o1);
 
   58         TH1D* h2 =  
dynamic_cast<TH1D*
>(o2);
 
   60         if(h1 -> GetNbinsX() != h2 -> GetNbinsX())
 
   61           ERROR(
"Histograms with different bining. The objects: " << h1 -> GetName() << 
" can not be compared." << endl);
 
JTestResult JRunsTest(TH1 *h1, TH1 *h2, double threshold, std::string testName, std::string parameterName)
Implements the Wald-Wolfowitx runs test: https://en.wikipedia.org/wiki/Wald%E2%80%93Wolfowitz_runs_te...
 
Interface to read input and write output for TObject tests. 
 
void test(TObject *o1, TObject *o2) override
Tests the statistical compatibility of two ROOT TObjects. 
 
std::istream & read(std::istream &in) override
Read test parameters from input. 
 
then for HISTOGRAM in h0 h1
 
std::vector< JTestResult > results
Buffer to store results of multiple tests.*/. 
 
Implementation of the Runs test for 1D histograms. 
 
const std::string resultType
result type 
 
const std::string testName
test name 
 
Implementation of the different Runs-related tests. 
 
double threshold
threshold value to decide if test is passed. 
 
Structure containing the result of the test. 
 
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 source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in