Jpp 20.0.0-rc.2
the software that should make you happy
Loading...
Searching...
No Matches
JTestChi2_Slice2D.hh
Go to the documentation of this file.
1#ifndef __JCOMPAREHISTOGRAMS__JTESTCHI2_SLICE2D__
2#define __JCOMPAREHISTOGRAMS__JTESTCHI2_SLICE2D__
3
4#include <iostream>
5
6#include "TH1.h"
7#include "TH2.h"
8
9#include "JLang/JException.hh"
10
14
15
16/**
17 * \author rgruiz, bjung
18 */
19namespace JCOMPAREHISTOGRAMS {}
20namespace JPP { using namespace JCOMPAREHISTOGRAMS; }
21
22namespace JCOMPAREHISTOGRAMS {
23
24 /**
25 * Implementation of the Chi2 test for 2D histograms.\n
26 * This class is derived from the abstract class JTest_t(). For a general description of the implementation of this and other tests derived from JTest_t(), see its documentation.\n
27 * The parameter slice can have the values x, X, y or Y. The histograms are sliced along the corresponding axis, and the JTestChi2() test is applied to each slice.\n
28 * The input parameter `threshold`, is used to evaluate whether the test is passed or failed for each slice.\n
29 * The evaluation is done by comparing the `threshold` value with the result produced by the Chi2 test for each slice. The output of JTestChi2() is a p-value.\n
30 * The parameter `threshold` should therefore be a real value between 0 and 1.
31 */
33 public JTestSlice2D
34 {
35 public:
36
37 /**
38 * Default constructor.
39 */
41 JTestSlice2D("Chi2_Slice2D", "p-Value(chi2)", new JTestChi2())
42 {}
43 };
44}
45
46#endif
Exceptions.
Implementation of the Chi2 test for 2D histograms.
Implementation of the Chi2 test for ROOT histograms.
Definition JTestChi2.hh:29
Abstract base class for 2D slice tests.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).