1 #ifndef __JTESTCHI2_BIN__
2 #define __JTESTCHI2_BIN__
33 std::istream&
read(std::istream&
in) {
34 return in >> outliersThreshold >> chi2Threshold;
43 std::ostream&
write(std::ostream& out) {
45 out << scientific << setprecision(2) << (
r->passed ?
GREEN :
RED) <<
r->message << endl;
60 if (!(dynamic_cast<TH2*>(o1) == NULL) && !(dynamic_cast<TH2*>(o2) == NULL)) {
62 TH2D*
h1 =
dynamic_cast<TH2D*
>(o1);
63 TH2D* h2 =
dynamic_cast<TH2D*
>(o2);
65 JTestResult r = JChi2TestBin_2D(h1, h2, outliersThreshold, chi2Threshold);
79 if (f -> GetDirectory(path.c_str())==0) f->mkdir(path.c_str());
void test(TObject *o1, TObject *o2)
std::ostream & write(std::ostream &out)
esac print_variable DETECTOR INPUT_FILE OUTPUT_FILE CDF for TYPE in
then for HISTOGRAM in h0 h1
std::istream & read(std::istream &in)
do cat driver txt<< EOFevent ev_configure{RC_EVT%< ev_configure.txt > RC_DWRT path
double outliersThreshold
number of bins allowed to fail the test.
virtual void save(TFile *f, string path)
double chi2Threshold
threshold p-value to decide if test is passed for a bin.