1 #ifndef __JCOMPAREHISTOGRAMS__JTESTKOLMOGOROV_SLICE__ 
    2 #define __JCOMPAREHISTOGRAMS__JTESTKOLMOGOROV_SLICE__ 
   14 namespace JCOMPAREHISTOGRAMS {
 
   34       JTest_t(
"KS_Slice", 
"p-Value(KS)"),
 
   44     std::istream& 
read(std::istream& 
in)
 override{ 
 
   59       if (!(dynamic_cast<TH2*>(o1) == NULL) && !(dynamic_cast<TH2*>(o2) == NULL)) {
 
   61         TH2D* 
h1 = 
dynamic_cast<TH2D*
>(o1);
 
   62         TH2D* h2 = 
dynamic_cast<TH2D*
>(o2);
 
   71           ERROR (
"Slice option should be: x, X, y or Y, and not " + 
slice);
 
   74       } 
else if (!(dynamic_cast<TH1*>(o1) == NULL) && !(dynamic_cast<TH1*>(o2) == NULL)) {
 
   75         ERROR(
"For 1D histograms call JTestKolmogorov_1D: " << o1->GetName() << endl);
 
Interface to read input and write output for TObject tests. 
 
void test(TObject *o1, TObject *o2) override
Applies Kolmogorov test for two ROOT TH2 histograms. 
 
double failuresThreshold
threshold p-value to decide if test is passed. 
 
Implementation of the different Kolmogorov-related tests. 
 
Implementation of the Kolmogorov test for 2D histograms. 
 
then for HISTOGRAM in h0 h1
 
std::vector< JTestResult > results
Buffer to store results of multiple tests.*/. 
 
JTestResult JKolmogorovTestSlice(TH2 *h1, TH2 *h2, double threshold, double failuresThreshold, std::string testName, std::string parameterName, char slice)
Kolmogorov test for sliced 2D histograms. 
 
const std::string resultType
result type 
 
const std::string testName
test name 
 
JTestKolmogorovSlice()
Default constructor. 
 
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
 
char slice
axis to slice. x or X for x-axis, y or Y for y-axis, n or N for None. 
 
double threshold
threshold p-value to decide if test is passed. 
 
std::istream & read(std::istream &in) override
Read test parameters from input.