1 #ifndef __JCOMPAREHISTOGRAMS__JTESTSIGNIFICANCE_2D__
2 #define __JCOMPAREHISTOGRAMS__JTESTSIGNIFICANCE_2D__
14 namespace JCOMPAREHISTOGRAMS {
29 JTest_t(
"Significance_2D",
"Significance"),
39 std::istream&
read(std::istream&
in)
override{
53 if (!(dynamic_cast<TH2*>(o1) == NULL) && !(dynamic_cast<TH2*>(o2) == NULL)) {
55 TH2D*
h1 =
dynamic_cast<TH2D*
>(o1);
56 TH2D* h2 =
dynamic_cast<TH2D*
>(o2);
58 if (h1 -> GetNbinsX() != h2 -> GetNbinsX() || h1 -> GetNbinsY() != h2 -> GetNbinsY())
59 ERROR(
"Histograms with different bining. The objects: " << h1 -> GetName() <<
" can not be compared." << endl);
62 K = h2->GetEntries()/h1->GetEntries();
Interface to read input and write output for TObject tests.
double K
normalization factor between histograms.
Significance test applied to 2D histograms.
then for HISTOGRAM in h0 h1
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.
std::istream & read(std::istream &in) override
Read test parameters from input.
const std::string resultType
result type
const std::string testName
test name
Structure containing the result of the test.
JTestSignificance_2D()
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 source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
double threshold
threshold p-value to decide if test is passed.