#ifndef __JCOMPAREHISTOGRAMS__JTESTRESULT__ #define __JCOMPAREHISTOGRAMS__JTESTRESULT__ #include #include "JGizmo/JRootObjectID.hh" #include "JCompareHistograms/JTestSummary.hh" #include "TObject.h" /** * \author rgruiz, bjung */ namespace JCOMPAREHISTOGRAMS {} namespace JPP { using namespace JCOMPAREHISTOGRAMS; } namespace JCOMPAREHISTOGRAMS { using JGIZMO::JRootObjectID; /** * Structure containing the result of the test. */ struct JTestResult : public JTestSummary { /** * Default constructor. */ JTestResult() : JTestSummary(), obj(NULL) {} /** * Constructor. * * \param summary summary * \param object graphical test output */ JTestResult(const JTestSummary& summary, const TObject* object) : JTestSummary(summary), obj (object) {} /** * Constructor. * * \param test test name * \param hA histogram A * \param hB histogram B * \param name parameter name * \param value parameter value * \param threshold parameter threshold * \param object graphical test output * \param pass true if test is passed; else false */ JTestResult(const std::string& test, const JRootObjectID& hA, const JRootObjectID& hB, const std::string& name, const double value, const double threshold, const TObject* object, const bool pass) : JTestSummary(test, hA, hB, name, value, threshold, pass), obj (object) {} const TObject* obj; /*!< Graphical output summarising the test. */ }; } #endif