|
BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
|
Base class of a result. More...
#include <Result.hh>


Public Member Functions | |
| Result (std::string nameIn, std::string objTypeIn) | |
| virtual | ~Result () |
| Virtual destructor. | |
| virtual std::string | print () const |
| Print the result of the test - ie information store in the class. | |
Data Fields | |
| std::string | name |
| Name of object being compared in files. | |
| std::string | objtype |
| Name of class of object being compared in files. | |
| bool | passed |
| Whether it passed or not. | |
Friends | |
| std::ostream & | operator<< (std::ostream &ostr, const Result &rhs) |
| Overload ostream for easy printing. | |
Base class of a result.
The basic information each test result should have. Public member class with compiler provided default constructor to use as a struct.
|
inline |
|
inlinevirtual |
|
inlinevirtual |
Print the result of the test - ie information store in the class.
Reimplemented in ResultEvent, ResultEventTree, ResultHistogram, ResultHistogram2D, ResultSampler, and ResultTree.
Definition at line 58 of file Result.hh.
References name, objtype, and passed.
Referenced by ResultEvent::print(), ResultEventTree::print(), ResultHistogram::print(), ResultSampler::print(), and ResultTree::print().

|
friend |
| std::string Result::name |
Name of object being compared in files.
Definition at line 53 of file Result.hh.
Referenced by Compare::Histograms(), Compare::Optics(), print(), and Compare::Trees().
| std::string Result::objtype |
Name of class of object being compared in files.
Definition at line 54 of file Result.hh.
Referenced by Compare::Histograms(), Compare::Optics(), print(), and Compare::Trees().
| bool Result::passed |
Whether it passed or not.
Definition at line 55 of file Result.hh.
Referenced by Compare::Histograms(), Compare::Optics(), print(), and Compare::Trees().