1 #ifndef __JCOMPAREHISTOGRAMS__JTESTRUNS_2D__
2 #define __JCOMPAREHISTOGRAMS__JTESTRUNS_2D__
16 namespace JCOMPAREHISTOGRAMS {
43 std::istream&
read(std::istream&
in)
override{
47 if (!(slice ==
'x' || slice ==
'X' || slice ==
'y' || slice ==
'Y')) {
69 if (!(dynamic_cast<TH2*>(o1) == NULL) && !(dynamic_cast<TH2*>(o2) == NULL)) {
71 TH2D*
h1 =
dynamic_cast<TH2D*
>(o1);
72 TH2D* h2 =
dynamic_cast<TH2D*
>(o2);
78 }
else if (!(dynamic_cast<TH1*>(o1) == NULL) && !(dynamic_cast<TH1*>(o2) == NULL)) {
Interface to read input and write output for TObject tests.
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
then for HISTOGRAM in h0 h1
std::vector< JTestResult > results
Buffer to store results of multiple tests.*/.
std::istream & read(std::istream &in) override
Read test parameters from input.
const std::string resultType
result type
double threshold
threshold value to decide if test is passed.
const std::string testName
test name
Implementation of the different Runs-related tests.
Structure containing the result of the test.
Exception for accessing a value in a collection that is outside of its range.
double failuresThreshold
threshold value to decide if test is passed.
JTestResult JRunsTestSlice(TH2 *h1, TH2 *h2, double threshold, double failuresThreshold, std::string testName, std::string parameterName, char slice)
Runs test for sliced 2D histograms.
char slice
Axis to slice. x or X for x-axis, y or Y for y-axis, n or N for None.
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
Implementation of the Chi2 test for 2D histograms.
void test(TObject *o1, TObject *o2) override
Tests the statistical compatibility of two ROOT TObjects.