#ifndef __JCOMPAREHISTOGRAMS__JTESTDICTIONARY__ #define __JCOMPAREHISTOGRAMS__JTESTDICTIONARY__ #include #include #include "JCompareHistograms/JTest_t.hh" #include "JCompareHistograms/JTestChi2.hh" #include "JCompareHistograms/JTestChi2_Slice2D.hh" #include "JCompareHistograms/JTestChi2_Bin.hh" #include "JCompareHistograms/JTestKolmogorov_1D.hh" #include "JCompareHistograms/JTestKolmogorov_2D.hh" #include "JCompareHistograms/JTestKolmogorov_Slice2D.hh" #include "JCompareHistograms/JTestRuns_1D.hh" #include "JCompareHistograms/JTestRuns_Slice2D.hh" #include "JCompareHistograms/JTestZero.hh" #include "JCompareHistograms/JTestIdentical.hh" #include "JCompareHistograms/JTestSignificance.hh" #include "JCompareHistograms/JTestPoissonLogLikelihoodRatio.hh" #include "JCompareHistograms/JTestPoissonLogLikelihoodRatioBeestonBarlow.hh" /** * \author rgruiz, bjung */ 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()\n * 1 : JTestChi2_Bin()\n * 2 : JTestChi2_Slice2D()\n * 3 : JTestKolmogorov_1D()\n * 4 : JTestKolmogorov_2D()\n * 5 : JTestKolmogorov_Slice2D()\n * 6 : JTestRuns_1D()\n * 7 : JTestRuns_Slice2D()\n * 8 : JTestZero()\n * 9 : JTestIdentical()\n * 10 : JTestSignificance()\n * 11 : JTestPoissonLogLikelihoodRatio()\n * 12 : JTestPoissonLogLikelihoodRatioBeestonBarlow()\n\n * * The tests listed above are derived from the pure 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(); (*this)[1] = new JTestChi2_Bin(); (*this)[2] = new JTestChi2_Slice2D(); (*this)[3] = new JTestKolmogorov_1D(); (*this)[4] = new JTestKolmogorov_2D(); (*this)[5] = new JTestKolmogorov_Slice2D(); (*this)[6] = new JTestRuns_1D(); (*this)[7] = new JTestRuns_Slice2D(); (*this)[8] = new JTestZero(); (*this)[9] = new JTestIdentical(); (*this)[10] = new JTestSignificance(); (*this)[11] = new JTestPoissonLogLikelihoodRatio(); (*this)[12] = new JTestPoissonLogLikelihoodRatioBeestonBarlow(); } }; } #endif