Jpp  15.0.1-rc.2-highQE
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JTestDictionary.hh
Go to the documentation of this file.
1 #ifndef __JCOMPAREHISTOGRAMS__JTESTDICTIONARY__
2 #define __JCOMPAREHISTOGRAMS__JTESTDICTIONARY__
3 
4 #include <istream>
5 #include <ostream>
6 
24 
25 
26 /**
27  * \author rgruiz
28  */
29 namespace JCOMPAREHISTOGRAMS {}
30 namespace JPP { using namespace JCOMPAREHISTOGRAMS; }
31 
32 namespace JCOMPAREHISTOGRAMS {
33  /*
34  * Dictionary to map different tests to unique integer indices.\n
35  * The mapping between the available tests and the integer indices is as follows\n\n
36  *
37  * 0 : JTestChi2_1D()\n
38  * 1 : JTestKolmogorov_1D()\n
39  * 2 : JTestChi2_2D()\n
40  * 3 : JTestKolmogorov_2D()\n
41  * 4 : JTestChi2_Bin()\n
42  * 5 : JTestZero()\n
43  * 6 : JTestRuns_1D()\n
44  * 7 : JTestRuns_2D()\n
45  * 8 : JTestIdentical_1D()\n
46  * 9 : JTestIdentical_2D()\n
47  * 10 : JTestIdentical_3D()\n
48  * 11 : JTestSignificance_1D()\n
49  * 12 : JTestSignificance_2D()\n
50  * 13 : JTestChi2R_1D()\n
51  * 14 : JTestChi2R_2D()\n
52  * 15 : JTestKolmogorovSlice()\n\n
53  *
54  * The tests listed above are derived from the purely virtual interface JTest_t(), where the common I/O functionality is defined.
55  */
56  class JTestDictionary: public std::map <int , JTest_t*>
57  {
58  public:
59  /**
60  * Default constructor.
61  */
63  (*this)[0] = new JTestChi2_1D();
64  (*this)[1] = new JTestKolmogorov_1D();
65  (*this)[2] = new JTestChi2_2D();
66  (*this)[3] = new JTestKolmogorov_2D();
67  (*this)[4] = new JTestChi2_Bin();
68  (*this)[5] = new JTestZero();
69  (*this)[6] = new JTestRuns_1D();
70  (*this)[7] = new JTestRuns_2D();
71  (*this)[8] = new JTestIdentical_1D();
72  (*this)[9] = new JTestIdentical_2D();
73  (*this)[10] = new JTestIdentical_3D();
74  (*this)[11] = new JTestSignificance_1D();
75  (*this)[12] = new JTestSignificance_2D();
76  (*this)[13] = new JTestChi2R_1D();
77  (*this)[14] = new JTestChi2R_2D();
78  (*this)[15] = new JTestKolmogorovSlice();
79  }
80  };
81 }
82 
83 #endif
Significance test applied to 2D histograms.
Implementation of the Kolmogorov test for 2D histograms.
Implementation of the Chi2 test for 2D histograms.
Implementation of the a test to check if two 2D histograms are the same.
JTestDictionary()
Default constructor.
Implementation of a bin-by-bin Chi2 test for 2D histograms.
Implementation of the Runs test for 1D histograms.
Definition: JTestRuns_1D.hh:21
Implementation of the Chi2 test for 1D histograms.
Definition: JTestChi2_1D.hh:21
Implementation of the Chi2 test for 1D histograms.
Implementation of the Kolmogorov test for 2D histograms.
Implementation of the a test to check if two 1D histograms are the same.
Implementation of a bin-by-bin compatibility test for 2D histograms with low bin contents.
Definition: JTestZero.hh:29
Significance test applied to 1D histograms.
Implementation of the a test to check if two 3D histograms are the same.
Implementation of the Chi2 test for 2D histograms.
Definition: JTestRuns_2D.hh:26
Implementation of the Chi2 test for 2D histograms.
Definition: JTestChi2_2D.hh:23
Implementation of the Kolmogorov test for 1D histograms.