Jpp test-rotations-new
the software that should make you happy
Loading...
Searching...
No Matches
JCOMPAREHISTOGRAMS::JTestResult Struct Reference

Structure containing the result of the test. More...

#include <JTestResult.hh>

Inheritance diagram for JCOMPAREHISTOGRAMS::JTestResult:
JCOMPAREHISTOGRAMS::JTestSummary

Public Member Functions

 JTestResult ()
 Default constructor.
 
 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.
 
JProperties getProperties (const JEquationParameters &equation=JTestSummary::getEquationParameters())
 Get properties of this class.
 
JProperties getProperties (const JEquationParameters &equation=JTestSummary::getEquationParameters()) const
 Get properties of this class.
 

Static Public Member Functions

static JEquationParametersgetEquationParameters ()
 Get equation parameters.
 
static void setEquationParameters (const JEquationParameters &equation)
 Set equation parameters.
 

Public Attributes

const TObjectobj
 
std::string testName
 
JRootObjectID histogramA
 
JRootObjectID histogramB
 
std::string parameterName
 
double parameterValue
 
double parameterThreshold
 
bool passed
 
std::string passed_h
 

Detailed Description

Structure containing the result of the test.

Definition at line 28 of file JTestResult.hh.

Constructor & Destructor Documentation

◆ JTestResult() [1/3]

JCOMPAREHISTOGRAMS::JTestResult::JTestResult ( )
inline

Default constructor.

Definition at line 34 of file JTestResult.hh.

34 :
36 obj(NULL)
37 {}
JTestSummary()
Default constructor.

◆ JTestResult() [2/3]

JCOMPAREHISTOGRAMS::JTestResult::JTestResult ( const JTestSummary & summary,
const TObject * object )
inline

Constructor.

Parameters
summarysummary
objectgraphical test output

Definition at line 46 of file JTestResult.hh.

47 :
48 JTestSummary(summary),
49 obj (object)
50 {}

◆ JTestResult() [3/3]

JCOMPAREHISTOGRAMS::JTestResult::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 )
inline

Constructor.

Parameters
testtest name
hAhistogram A
hBhistogram B
nameparameter name
valueparameter value
thresholdparameter threshold
objectgraphical test output
passtrue if test is passed; else false

Definition at line 65 of file JTestResult.hh.

72 :
73 JTestSummary(test, hA, hB, name, value, threshold, pass),
74 obj (object)
75 {}

Member Function Documentation

◆ getEquationParameters()

static JEquationParameters & JCOMPAREHISTOGRAMS::JTestSummary::getEquationParameters ( )
inlinestaticinherited

Get equation parameters.

Returns
equation parameters

Definition at line 87 of file JTestSummary.hh.

88 {
89 static JEquationParameters equation("=", "; ", "", "#");
90
91 return equation;
92 }
Simple data structure to support I/O of equations (see class JLANG::JEquation).

◆ setEquationParameters()

static void JCOMPAREHISTOGRAMS::JTestSummary::setEquationParameters ( const JEquationParameters & equation)
inlinestaticinherited

Set equation parameters.

Parameters
equationequation parameters

Definition at line 100 of file JTestSummary.hh.

101 {
102 getEquationParameters() = equation;
103 }
static JEquationParameters & getEquationParameters()
Get equation parameters.

◆ getProperties() [1/2]

JProperties JCOMPAREHISTOGRAMS::JTestSummary::getProperties ( const JEquationParameters & equation = JTestSummary::getEquationParameters())
inlineinherited

Get properties of this class.

Parameters
equationequation parameters

Definition at line 111 of file JTestSummary.hh.

112 {
113 return JTestSummaryHelper(*this, equation);
114 }

◆ getProperties() [2/2]

JProperties JCOMPAREHISTOGRAMS::JTestSummary::getProperties ( const JEquationParameters & equation = JTestSummary::getEquationParameters()) const
inlineinherited

Get properties of this class.

Parameters
equationequation parameters

Definition at line 122 of file JTestSummary.hh.

123 {
124 return JTestSummaryHelper(*this, equation);
125 }

Member Data Documentation

◆ obj

const TObject* JCOMPAREHISTOGRAMS::JTestResult::obj

Graphical output summarising the test.

Definition at line 78 of file JTestResult.hh.

◆ testName

std::string JCOMPAREHISTOGRAMS::JTestSummary::testName
inherited

Test name.

Definition at line 176 of file JTestSummary.hh.

◆ histogramA

JRootObjectID JCOMPAREHISTOGRAMS::JTestSummary::histogramA
inherited

First histogram.

Definition at line 177 of file JTestSummary.hh.

◆ histogramB

JRootObjectID JCOMPAREHISTOGRAMS::JTestSummary::histogramB
inherited

Second histogram.

Definition at line 178 of file JTestSummary.hh.

◆ parameterName

std::string JCOMPAREHISTOGRAMS::JTestSummary::parameterName
inherited

Parameter evaluated by the test.

Definition at line 179 of file JTestSummary.hh.

◆ parameterValue

double JCOMPAREHISTOGRAMS::JTestSummary::parameterValue
inherited

Value of the parameter evaluated by the test.

Definition at line 180 of file JTestSummary.hh.

◆ parameterThreshold

double JCOMPAREHISTOGRAMS::JTestSummary::parameterThreshold
inherited

Threshold to evaluate the parameter.

Definition at line 181 of file JTestSummary.hh.

◆ passed

bool JCOMPAREHISTOGRAMS::JTestSummary::passed
inherited

True if the test passed.

Definition at line 182 of file JTestSummary.hh.

◆ passed_h

std::string JCOMPAREHISTOGRAMS::JTestSummary::passed_h
inherited

Human readable version of passed.

Definition at line 183 of file JTestSummary.hh.


The documentation for this struct was generated from the following file: