1 #ifndef __JCOMPAREHISTOGRAMS__JTESTCHI2R_1D__ 
    2 #define __JCOMPAREHISTOGRAMS__JTESTCHI2R_1D__ 
   13 namespace JCOMPAREHISTOGRAMS {
 
   32       JTest_t(
"Chi2R_1D", 
"chi2/NDF"),
 
   42     std::istream& 
read(std::istream& 
in)
 override{ 
 
   56       if (!(dynamic_cast<TH2*>(o1) == NULL) || !(dynamic_cast<TH2*>(o2) == NULL)) {
 
   58         ERROR(
"For 2D histograms call JTestChi2_2D: " << o1->GetName() << std::endl);
 
   60       } 
else if (!(dynamic_cast<TH1*>(o1) == NULL) && !(
dynamic_cast<TH1*
>(o2) == NULL)) {
 
   62         TH1D* h1 =  
dynamic_cast<TH1D*
>(o1);
 
   63         TH1D* h2 =  
dynamic_cast<TH1D*
>(o2);
 
   65         if(h1 -> GetNbinsX() != h2 -> GetNbinsX())
 
   66           ERROR(
"Histograms with different bining. The objects: " << h1 -> GetName() << 
" cannot be compared." << std::endl);
 
const std::string options
options for the ROOT chi2 test. 
 
std::istream & read(std::istream &in) override
Read test parameters from input. 
 
double threshold
threshold p-value to decide if test is passed. 
 
Interface to read input and write output for TObject tests. 
 
JTestResult JChi2Test(TH1 *h1, TH1 *h2, double threshold, std::string testName, std::string parameterName, std::string options)
Chi2 test for 1D histograms. 
 
std::vector< JTestResult > results
Buffer to store results of multiple tests.*/. 
 
JTestChi2R_1D()
Default constructor. 
 
const std::string resultType
result type 
 
const std::string testName
test name 
 
Implementation of the Chi2 test for 1D histograms. 
 
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 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
 
Implementation of the different Chi2-related tests. 
 
void test(TObject *o1, TObject *o2) override
Applies Chi2 test for two ROOT TH1 histograms.