Jpp test-rotations-old
the software that should make you happy
Loading...
Searching...
No Matches
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
17namespace JCOMPAREHISTOGRAMS {}
18namespace JPP { using namespace JCOMPAREHISTOGRAMS; }
19
20namespace 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 */
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
Class dedicated to standardize the title of the graphical objects produced by the JTest_t() derived c...
Auxiliary class to handle file name, ROOT directory and object name.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Structure containing the result of the test.
JTestResult(const JTestSummary &summary, const TObject *object)
Constructor.
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.
JTestResult()
Default constructor.