#ifndef __JCOMPAREHISTOGRAMS__JTESTDICTIONARY__ #define __JCOMPAREHISTOGRAMS__JTESTDICTIONARY__ #include #include #include "JCompareHistograms/JTest_t.hh" #include "JCompareHistograms/JTestChi2_1D.hh" #include "JCompareHistograms/JTestKolmogorov_1D.hh" #include "JCompareHistograms/JTestChi2_2D.hh" #include "JCompareHistograms/JTestKolmogorov_2D.hh" #include "JCompareHistograms/JTestChi2_Bin.hh" #include "JCompareHistograms/JTestZero.hh" #include "JCompareHistograms/JTestRuns_1D.hh" #include "JCompareHistograms/JTestRuns_2D.hh" #include "JCompareHistograms/JTestIdentical_1D.hh" #include "JCompareHistograms/JTestIdentical_2D.hh" #include "JCompareHistograms/JTestIdentical_3D.hh" #include "JCompareHistograms/JTestSignificance_1D.hh" #include "JCompareHistograms/JTestSignificance_2D.hh" #include "JCompareHistograms/JTestChi2R_1D.hh" #include "JCompareHistograms/JTestChi2R_2D.hh" #include "JCompareHistograms/JTestKolmogorovSlice.hh" /** * \author rgruiz */ namespace JCOMPAREHISTOGRAMS {} namespace JPP { using namespace JCOMPAREHISTOGRAMS; } namespace JCOMPAREHISTOGRAMS { /* * Dictionary to map different tests to unique integer indices.\n * The mapping between the available tests and the integer indices is as follows\n\n * * 0 : JTestChi2_1D()\n * 1 : JTestKolmogorov_1D()\n * 2 : JTestChi2_2D()\n * 3 : JTestKolmogorov_2D()\n * 4 : JTestChi2_Bin()\n * 5 : JTestZero()\n * 6 : JTestRuns_1D()\n * 7 : JTestRuns_2D()\n * 8 : JTestIdentical_1D()\n * 9 : JTestIdentical_2D()\n * 10 : JTestIdentical_3D()\n * 11 : JTestSignificance_1D()\n * 12 : JTestSignificance_2D()\n * 13 : JTestChi2R_1D()\n * 14 : JTestChi2R_2D()\n * 15 : JTestKolmogorovSlice()\n\n * * The tests listed above are derived from the purely virtual interface JTest_t(), where the common I/O functionality is defined. */ class JTestDictionary: public std::map { public: /** * Default constructor. */ JTestDictionary(){ (*this)[0] = new JTestChi2_1D(); (*this)[1] = new JTestKolmogorov_1D(); (*this)[2] = new JTestChi2_2D(); (*this)[3] = new JTestKolmogorov_2D(); (*this)[4] = new JTestChi2_Bin(); (*this)[5] = new JTestZero(); (*this)[6] = new JTestRuns_1D(); (*this)[7] = new JTestRuns_2D(); (*this)[8] = new JTestIdentical_1D(); (*this)[9] = new JTestIdentical_2D(); (*this)[10] = new JTestIdentical_3D(); (*this)[11] = new JTestSignificance_1D(); (*this)[12] = new JTestSignificance_2D(); (*this)[13] = new JTestChi2R_1D(); (*this)[14] = new JTestChi2R_2D(); (*this)[15] = new JTestKolmogorovSlice(); } }; } #endif