Jpp  19.0.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JTestResult.hh
Go to the documentation of this file.
1 #ifndef __JCOMPAREHISTOGRAMS__JTESTRESULT__
2 #define __JCOMPAREHISTOGRAMS__JTESTRESULT__
3 
4 #include <string>
5 
7 
9 
10 #include "TObject.h"
11 
12 
13 /**
14  * \author rgruiz, bjung
15  */
16 
17 namespace JCOMPAREHISTOGRAMS {}
18 namespace JPP { using namespace JCOMPAREHISTOGRAMS; }
19 
20 namespace JCOMPAREHISTOGRAMS {
21 
23 
24 
25  /**
26  * Structure containing the result of the test.
27  */
28  struct JTestResult :
29  public JTestSummary
30  {
31  /**
32  * Default constructor.
33  */
35  JTestSummary(),
36  obj(NULL)
37  {}
38 
39 
40  /**
41  * Constructor.
42  *
43  * \param summary summary
44  * \param object graphical test output
45  */
46  JTestResult(const JTestSummary& summary,
47  const TObject* object) :
48  JTestSummary(summary),
49  obj (object)
50  {}
51 
52 
53  /**
54  * Constructor.
55  *
56  * \param test test name
57  * \param hA histogram A
58  * \param hB histogram B
59  * \param name parameter name
60  * \param value parameter value
61  * \param threshold parameter threshold
62  * \param object graphical test output
63  * \param pass true if test is passed; else false
64  */
65  JTestResult(const std::string& test,
66  const JRootObjectID& hA,
67  const JRootObjectID& hB,
68  const std::string& name,
69  const double value,
70  const double threshold,
71  const TObject* object,
72  const bool pass) :
73  JTestSummary(test, hA, hB, name, value, threshold, pass),
74  obj (object)
75  {}
76 
77 
78  const TObject* obj; /*!< Graphical output summarising the test. */
79  };
80 }
81 
82 #endif
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)
Constructor.
Definition: JTestResult.hh:65
Definition: JRoot.hh:19
Auxiliary class to handle file name, ROOT directory and object name.
JTestResult(const JTestSummary &summary, const TObject *object)
Constructor.
Definition: JTestResult.hh:46
then fatal The output file must have the wildcard in the name
Definition: JCanberra.sh:31
Class dedicated to standardize the title of the graphical objects produced by the JTest_t() derived c...
Definition: JTestSummary.hh:33
Structure containing the result of the test.
Definition: JTestResult.hh:28
JTestResult()
Default constructor.
Definition: JTestResult.hh:34