1 #ifndef __JCOMPAREHISTOGRAMS__JTESTSIGNIFICANCE_1D__ 
    2 #define __JCOMPAREHISTOGRAMS__JTESTSIGNIFICANCE_1D__ 
   14 namespace JCOMPAREHISTOGRAMS {
 
   29       JTest_t(
"Significance_1D", 
"Significance"),
 
   39     std::istream& 
read(std::istream& 
in)
 override{ 
 
   53       if (!(dynamic_cast<TH2*>(o1) == NULL) || !(dynamic_cast<TH2*>(o2) == NULL)) {
 
   54         ERROR(
"For 2D histograms call JTestSignificance_2D: " << o1->GetName() << endl);
 
   56       } 
else if (!(dynamic_cast<TH1*>(o1) == NULL) && !(
dynamic_cast<TH1*
>(o2) == NULL)) {
 
   58         TH1D* 
h1 =  
dynamic_cast<TH1D*
>(o1);
 
   59         TH1D* h2 =  
dynamic_cast<TH1D*
>(o2);
 
   61         if (h1 -> GetNbinsX() != h2 -> GetNbinsX())
 
   62           ERROR(
"Histograms with different bining. The objects: " << h1 -> GetName() << 
" can not be compared." << endl);
 
   65           K = h2->GetEntries()/h1->GetEntries();
 
Interface to read input and write output for TObject tests. 
 
then for HISTOGRAM in h0 h1
 
JTestSignificance_1D()
Default constructor. 
 
std::vector< JTestResult > results
Buffer to store results of multiple tests.*/. 
 
void test(TObject *o1, TObject *o2) override
Applies Significance test for two ROOT TH1 histograms. 
 
double K
normalization factor between histograms. 
 
const std::string resultType
result type 
 
const std::string testName
test name 
 
double threshold
threshold p-value to decide if test is passed. 
 
std::istream & read(std::istream &in) override
Read test parameters from input. 
 
Significance test applied to 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 source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in