1 #ifndef __JTESTRUNS_1D__
2 #define __JTESTRUNS_1D__
27 std::istream&
read(std::istream&
in) {
28 return in >> threshold >> logX >> logY;
37 std::ostream&
write(std::ostream& out) {
39 out << scientific << setprecision(2) << (
r->passed ?
GREEN :
RED) <<
r->message << endl;
52 if (!(dynamic_cast<TH2*>(o1) == NULL) || !(dynamic_cast<TH2*>(o2) == NULL)) {
53 ERROR(
"For 2D histograms call JTestRuns_2D: " << o1->GetName() << endl);
55 }
else if (!(dynamic_cast<TH1*>(o1) == NULL) && !(
dynamic_cast<TH1*
>(o2) == NULL)) {
57 TH1D*
h1 =
dynamic_cast<TH1D*
>(o1);
58 TH1D* h2 =
dynamic_cast<TH1D*
>(o2);
60 if(h1 -> GetNbinsX() != h2 -> GetNbinsX())
61 ERROR(
"Histograms with different bining. The objects: " << h1 -> GetName() <<
" can not be compared." << endl);
63 JTestResult r = JRunsTest(h1, h2, threshold, logX, logY);
78 if (f -> GetDirectory(path.c_str())==0) f->mkdir(path.c_str());
std::istream & read(std::istream &in)
esac print_variable DETECTOR INPUT_FILE OUTPUT_FILE CDF for TYPE in
then for HISTOGRAM in h0 h1
do cat driver txt<< EOFevent ev_configure{RC_EVT%< ev_configure.txt > RC_DWRT path
void test(TObject *o1, TObject *o2)
std::ostream & write(std::ostream &out)
virtual void save(TFile *f, string path)