Jpp - 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 __JTESTDICTIONARY__
2 #define __JTESTDICTIONARY__
3 
4 #include <istream>
5 #include <ostream>
6 
24 
25 /**
26  * \author rgruiz
27  */
28 
29 /*!
30  * Dictionary to map different tests to unique integer indices.\n
31  * The mapping between the available tests and the integer indices is as follows\n\n
32  *
33  * 0 : JTestChi2_1D()\n
34  * 1 : JTestKolmogorov_1D()\n
35  * 2 : JTestChi2_2D()\n
36  * 3 : JTestKolmogorov_2D()\n
37  * 4 : JTestChi2_Bin()\n
38  * 5 : JTestZero()\n
39  * 6 : JTestRuns_1D()\n
40  * 7 : JTestRuns_2D()\n
41  * 8 : JTestIdentical_1D()\n
42  * 9 : JTestIdentical_2D()\n
43  * 10 : JTestIdentical_3D()\n
44  * 11 : JTestSignificance_1D()\n
45  * 12 : JTestSignificance_2D()\n
46  * 13 : JTestChi2R_1D()\n
47  * 14 : JTestChi2R_2D()\n
48  * 15 : JTestKolmogorovSlice()\n\n
49  *
50  * The tests listed above are derived from the purely virtual interface JTest_t(), where the common I/O functionality is defined.
51  */
52 class JTestDictionary: public std::map <int , JTest_t*>
53 {
54 public:
55  /**
56  * Default constructor.
57  */
59  (*this)[0] = new JTestChi2_1D();
60  (*this)[1] = new JTestKolmogorov_1D();
61  (*this)[2] = new JTestChi2_2D();
62  (*this)[3] = new JTestKolmogorov_2D();
63  (*this)[4] = new JTestChi2_Bin();
64  (*this)[5] = new JTestZero();
65  (*this)[6] = new JTestRuns_1D();
66  (*this)[7] = new JTestRuns_2D();
67  (*this)[8] = new JTestIdentical_1D();
68  (*this)[9] = new JTestIdentical_2D();
69  (*this)[10] = new JTestIdentical_3D();
70  (*this)[11] = new JTestSignificance_1D();
71  (*this)[12] = new JTestSignificance_2D();
72  (*this)[13] = new JTestChi2R_1D();
73  (*this)[14] = new JTestChi2R_2D();
74  (*this)[15] = new JTestKolmogorovSlice();
75  }
76 };
77 
78 #endif
Significance test applied to 1D histograms.
Implementation of the Chi2 test for 1D histograms.
Definition: JTestChi2_1D.hh:20
Implementation of the Kolmogorov test for 2D histograms.
Implementation of a bin-by-bin compatibility test for 2D histograms with low bin contents.
Definition: JTestZero.hh:27
Implementation of the Runs test for 1D histograms.
Definition: JTestRuns_1D.hh:19
Implementation of a bin-by-bin Chi2 test for 2D histograms.
Implementation of the a test to check if two 2D histograms are the same.
Significance test applied to 2D histograms.
JTestDictionary()
Default constructor.
Implementation of the Chi2 test for 1D histograms.
Implementation of the Kolmogorov test for 2D histograms.
Implementation of the Chi2 test for 2D histograms.
Definition: JTestChi2_2D.hh:21
Implementation of the Chi2 test for 2D histograms.
Definition: JTestRuns_2D.hh:21
Implementation of the a test to check if two 1D histograms are the same.
Implementation of the Kolmogorov test for 1D histograms.
Implementation of the a test to check if two 3D histograms are the same.
Implementation of the Chi2 test for 2D histograms.