50 JResultTitle(std::string Name, std::string Parameter,
bool Passed,
double Value):
56 passed = Passed ?
"TRUE" :
"FALSE";
111 parameter (parameter),
113 threshold (threshold),
116 passed_h = passed ?
"PASSED" :
"FAILED";
134 passed = (passed_h ==
"PASSED") ? 1 : 0;
182 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):
259 virtual std::istream&
read (std::istream&
in) = 0;
269 virtual std::ostream&
write(std::ostream& out, std::string delimiter =
" ",
bool failures =
false)
const = 0;
285 virtual void save(TFile*
f , std::string
path,
bool failures =
false) = 0;
290 virtual void clear() = 0;
295 virtual std::string
getName() = 0;
virtual std::string getName()=0
Get test name.
virtual std::string getParameter()=0
Get test parameter.
Class dedicated to standardize the title of the graphical objects produced by the JTest_t() derived c...
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)
virtual void test(TObject *o1, TObject *o2)=0
Tests compatibility between two TObjects.
JResultTitle(std::string Name, std::string Parameter, bool Passed, double Value)
Constructor.
#define gmake_property(A)
macro to convert (template) parameter to JPropertiesElement object
JResultMessage()
Default constructor.
std::vector< JTestResult > results
virtual void save(TFile *f, std::string path, bool failures=false)=0
Writes the test result to root file.
Utility class to parse parameter values.
void setEndOfLine(const std::string &eol)
Set end of line characters.
JResultTitle()
Default constructor.
do set_array DAQHEADER JPrintDAQHeader f
Utility class to parse parameter values.
Structure containing the result of the test.
#define MAKE_STRING(A)
Make string.
do cat driver txt<< EOFevent ev_configure{RC_EVT%< ev_configure.txt > RC_DWRT path
Class dedicated to standardize the title of the graphical objects produced by the JTest_t() derived c...
std::ostream & separator(std::ostream &out)
Print separator.
virtual void clear()=0
Clear results.
std::string getMessage()
Returns a standard string to be used as title of a graphical root object.
virtual std::ostream & write(std::ostream &out, std::string delimiter=" ", bool failures=false) const =0
Write test result to output.
std::string getTitle()
Returns a standard string to be used as title of a graphical root object.
std::string printASCII() const
std::string parameterName
Interface to read input and write output for TObject tests.
std::istream & read(std::istream &in)
Read test parameters from input.
virtual std::istream & read(std::istream &in)=0
Read test parameters from input.
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
JResultMessage(std::string testName, std::string nameA, std::string nameB, std::string parameter, double value, double threshold, bool passed)
Constructor.
double parameterThreshold
std::string print(std::string separator) const