Jpp
pmt_effective_area_update
the software that should make you happy
|
Interface to read input and write output for TObject tests. More...
#include <JTest_t.hh>
Public Member Functions | |
virtual std::istream & | read (std::istream &in)=0 |
Read test parameters from input. More... | |
virtual std::ostream & | write (std::ostream &out, std::string delimiter=" ", bool failures=false) const =0 |
Write test result to output. More... | |
virtual void | test (TObject *o1, TObject *o2)=0 |
Tests compatibility between two TObjects. More... | |
virtual void | save (TFile *f, std::string path, bool failures=false)=0 |
Writes the test result to root file. More... | |
virtual void | clear ()=0 |
Clear results. More... | |
virtual std::string | getName ()=0 |
Get test name. More... | |
virtual std::string | getParameter ()=0 |
Get test parameter. More... | |
Public Attributes | |
std::vector< JTestResult > | results |
Interface to read input and write output for TObject tests.
This is an abstract class from which the different tests are derived.
All tests have in common the methods from this interface.
For each test, the parameters are passed through an istream, and parsed by the read() method.
For each test, the different results are stored in the results buffer.
The write() method is used to print a message with the result of the test.
The save() method is used to save a graphical output with the test results into a .root file.
The clear() method clears the results buffer. For a list of available tests see JTestDictionary()
Definition at line 246 of file JTest_t.hh.
|
pure virtual |
Read test parameters from input.
in | input stream |
Implemented in JTestZero, JTestKolmogorov_1D, JTestKolmogorov_2D, JTestKolmogorovSlice, JTestChi2_2D, JTestChi2R_2D, JTestChi2_1D, JTestChi2R_1D, JTestIdentical_1D, JTestIdentical_2D, JTestIdentical_3D, JTestSignificance_1D, JTestRuns_2D, JTestChi2_Bin, JTestSignificance_2D, and JTestRuns_1D.
|
pure virtual |
Write test result to output.
out | output stream |
delimiter | field delimiter |
failures | If true, write only failures. |
Implemented in JTestZero, JTestKolmogorov_1D, JTestChi2_2D, JTestKolmogorov_2D, JTestKolmogorovSlice, JTestChi2R_2D, JTestChi2_1D, JTestChi2R_1D, JTestIdentical_1D, JTestIdentical_2D, JTestIdentical_3D, JTestSignificance_1D, JTestRuns_2D, JTestChi2_Bin, JTestSignificance_2D, and JTestRuns_1D.
Tests compatibility between two TObjects.
o1 | First object |
o2 | Second object |
Implemented in JTestZero, JTestKolmogorov_1D, JTestChi2_2D, JTestKolmogorov_2D, JTestKolmogorovSlice, JTestChi2R_2D, JTestChi2_1D, JTestChi2R_1D, JTestChi2_Bin, JTestIdentical_1D, JTestIdentical_2D, JTestIdentical_3D, JTestSignificance_1D, JTestRuns_2D, JTestSignificance_2D, and JTestRuns_1D.
|
pure virtual |
Writes the test result to root file.
f | A ROOT file |
path | Path in root file. |
failures | If true, write only failures. |
Implemented in JTestChi2_2D, JTestKolmogorovSlice, JTestChi2R_2D, JTestKolmogorov_1D, JTestRuns_2D, JTestSignificance_1D, JTestChi2_1D, JTestChi2R_1D, JTestZero, JTestIdentical_1D, JTestKolmogorov_2D, JTestSignificance_2D, JTestIdentical_2D, JTestIdentical_3D, JTestRuns_1D, and JTestChi2_Bin.
|
pure virtual |
Clear results.
Implemented in JTestChi2_2D, JTestKolmogorovSlice, JTestChi2R_2D, JTestKolmogorov_1D, JTestRuns_2D, JTestSignificance_1D, JTestChi2_1D, JTestChi2R_1D, JTestKolmogorov_2D, JTestZero, JTestIdentical_1D, JTestSignificance_2D, JTestIdentical_2D, JTestIdentical_3D, JTestRuns_1D, and JTestChi2_Bin.
|
pure virtual |
Get test name.
Implemented in JTestChi2_2D, JTestKolmogorovSlice, JTestChi2R_2D, JTestKolmogorov_1D, JTestRuns_2D, JTestSignificance_1D, JTestChi2_1D, JTestChi2R_1D, JTestKolmogorov_2D, JTestZero, JTestIdentical_1D, JTestSignificance_2D, JTestIdentical_2D, JTestIdentical_3D, JTestRuns_1D, and JTestChi2_Bin.
|
pure virtual |
Get test parameter.
Implemented in JTestChi2_2D, JTestKolmogorovSlice, JTestChi2R_2D, JTestKolmogorov_1D, JTestRuns_2D, JTestSignificance_1D, JTestChi2_1D, JTestChi2R_1D, JTestKolmogorov_2D, JTestZero, JTestIdentical_1D, JTestSignificance_2D, JTestIdentical_2D, JTestIdentical_3D, JTestRuns_1D, and JTestChi2_Bin.
std::vector<JTestResult> JTest_t::results |
Buffer to store results of multiple tests.
Definition at line 251 of file JTest_t.hh.