Jpp  pmt_effective_area_update
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
JTestResult Struct Reference

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

#include <JTest_t.hh>

Public Member Functions

 JTestResult ()
 
 JTestResult (std::string test, std::string hA, std::string hB, std::string fA, std::string fB, std::string parameter, double value, double threshold, TObject *o, bool pass)
 
std::string print (std::string separator) const
 
std::string printASCII () const
 

Public Attributes

std::string testName
 
std::string histogramA
 
std::string histogramB
 
std::string fileA
 
std::string fileB
 
std::string parameterName
 
double parameterValue
 
double parameterThreshold
 
TObjectobj
 
bool passed
 
std::string passed_h
 
std::string message
 

Detailed Description

Structure containing the result of the test.

It contains a bool and a message to print

Definition at line 164 of file JTest_t.hh.

Constructor & Destructor Documentation

JTestResult::JTestResult ( )
inline

Definition at line 166 of file JTest_t.hh.

166  {
167  passed = false;
168  message = "0";
169  obj = NULL;
170  testName = "";
171  histogramA = "";
172  histogramB = "";
173  fileA = "";
174  fileB = "";
175  parameterName = "";
176  parameterValue = 0.0;
177  parameterThreshold = 0.0;
178  passed = false;
179  passed_h = "";
180  }
std::string fileB
Definition: JTest_t.hh:225
std::string passed_h
Definition: JTest_t.hh:231
std::string histogramA
Definition: JTest_t.hh:222
std::string message
Definition: JTest_t.hh:232
std::string testName
Definition: JTest_t.hh:221
std::string fileA
Definition: JTest_t.hh:224
std::string parameterName
Definition: JTest_t.hh:226
double parameterValue
Definition: JTest_t.hh:227
bool passed
Definition: JTest_t.hh:230
TObject * obj
Definition: JTest_t.hh:229
double parameterThreshold
Definition: JTest_t.hh:228
std::string histogramB
Definition: JTest_t.hh:223
JTestResult::JTestResult ( std::string  test,
std::string  hA,
std::string  hB,
std::string  fA,
std::string  fB,
std::string  parameter,
double  value,
double  threshold,
TObject o,
bool  pass 
)
inline

Definition at line 182 of file JTest_t.hh.

182  :
183  testName (test),
184  histogramA (hA),
185  histogramB (hB),
186  fileA (fA),
187  fileB (fB),
188  parameterName (parameter),
189  parameterValue (value),
190  parameterThreshold (threshold),
191  obj (o),
192  passed (pass)
193  {
194  passed_h = passed ? "PASSED" : "FAILED";
195  }
std::string fileB
Definition: JTest_t.hh:225
std::string passed_h
Definition: JTest_t.hh:231
std::string histogramA
Definition: JTest_t.hh:222
std::string testName
Definition: JTest_t.hh:221
std::string fileA
Definition: JTest_t.hh:224
std::string parameterName
Definition: JTest_t.hh:226
double parameterValue
Definition: JTest_t.hh:227
bool passed
Definition: JTest_t.hh:230
TObject * obj
Definition: JTest_t.hh:229
double parameterThreshold
Definition: JTest_t.hh:228
std::string histogramB
Definition: JTest_t.hh:223

Member Function Documentation

std::string JTestResult::print ( std::string  separator) const
inline

Definition at line 197 of file JTest_t.hh.

197  {
198  return MAKE_STRING(testName << separator <<
199  fileA .substr (fileA.rfind ('/') + 1 , fileA.npos) <<
200  histogramA.substr (histogramA.rfind (':') + 1 , histogramA.npos) << separator <<
201  fileB .substr (fileB.rfind ('/') + 1 , fileB.npos) <<
202  histogramB.substr (histogramB.rfind (':') + 1 , histogramB.npos) << separator <<
206  passed_h);
207  }
std::string fileB
Definition: JTest_t.hh:225
std::string passed_h
Definition: JTest_t.hh:231
std::string histogramA
Definition: JTest_t.hh:222
#define MAKE_STRING(A)
Make string.
Definition: JPrint.hh:142
std::ostream & separator(std::ostream &out)
Print separator.
std::string testName
Definition: JTest_t.hh:221
std::string fileA
Definition: JTest_t.hh:224
std::string parameterName
Definition: JTest_t.hh:226
double parameterValue
Definition: JTest_t.hh:227
double parameterThreshold
Definition: JTest_t.hh:228
std::string histogramB
Definition: JTest_t.hh:223
std::string JTestResult::printASCII ( ) const
inline

Definition at line 209 of file JTest_t.hh.

209  {
210  return MAKE_STRING(testName << ";" <<
211  fileA .substr (fileA.rfind ('/') + 1 , fileA.npos) <<
212  histogramA.substr (histogramA.rfind (':') + 1 , histogramA.npos) << ";" <<
213  fileB .substr (fileB.rfind ('/') + 1 , fileB.npos) <<
214  histogramB.substr (histogramB.rfind (':') + 1 , histogramB.npos) << ";" <<
215  parameterName << ";" <<
216  parameterValue << ";" <<
217  parameterThreshold << ";" <<
218  passed);
219  }
std::string fileB
Definition: JTest_t.hh:225
std::string histogramA
Definition: JTest_t.hh:222
#define MAKE_STRING(A)
Make string.
Definition: JPrint.hh:142
std::string testName
Definition: JTest_t.hh:221
std::string fileA
Definition: JTest_t.hh:224
std::string parameterName
Definition: JTest_t.hh:226
double parameterValue
Definition: JTest_t.hh:227
bool passed
Definition: JTest_t.hh:230
double parameterThreshold
Definition: JTest_t.hh:228
std::string histogramB
Definition: JTest_t.hh:223

Member Data Documentation

std::string JTestResult::testName

Test name

Definition at line 221 of file JTest_t.hh.

std::string JTestResult::histogramA

Name of histogram A

Definition at line 222 of file JTest_t.hh.

std::string JTestResult::histogramB

Name of histogram B

Definition at line 223 of file JTest_t.hh.

std::string JTestResult::fileA

Name of file A

Definition at line 224 of file JTest_t.hh.

std::string JTestResult::fileB

Name of file B

Definition at line 225 of file JTest_t.hh.

std::string JTestResult::parameterName

Name of the tested parameter

Definition at line 226 of file JTest_t.hh.

double JTestResult::parameterValue

Value of the tested parameter

Definition at line 227 of file JTest_t.hh.

double JTestResult::parameterThreshold

Threshold for the tested parameter

Definition at line 228 of file JTest_t.hh.

TObject* JTestResult::obj

Graphical output summarising the test.

Definition at line 229 of file JTest_t.hh.

bool JTestResult::passed

Test result. True if test passed.

Definition at line 230 of file JTest_t.hh.

std::string JTestResult::passed_h

Human readable version of passed

Definition at line 231 of file JTest_t.hh.

std::string JTestResult::message

Human readable message with test result.

Definition at line 232 of file JTest_t.hh.


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