1 #ifndef __JTESTKOLMOGOROV_1D__
2 #define __JTESTKOLMOGOROV_1D__
35 std::istream&
read(std::istream&
in) {
36 return in >> threshold;
45 std::ostream&
write(std::ostream& out) {
47 out << scientific << setprecision(2) << (
r->passed ?
GREEN :
RED) <<
r->message << endl;
60 if (!(dynamic_cast<TH2*>(o1) == NULL) || !(dynamic_cast<TH2*>(o2) == NULL)) {
61 ERROR(
"For 2D histograms call JTestKolmogorov_2D: " << o1->GetName() << endl);
63 }
else if (!(dynamic_cast<TH1*>(o1) == NULL) && !(
dynamic_cast<TH1*
>(o2) == NULL)) {
65 TH1D*
h1 =
dynamic_cast<TH1D*
>(o1);
66 TH1D* h2 =
dynamic_cast<TH1D*
>(o2);
83 if (f -> GetDirectory(path.c_str())==0) f->mkdir(path.c_str());
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
std::ostream & write(std::ostream &out)
double threshold
threshold p-value to decide if test is passed.
void test(TObject *o1, TObject *o2)
virtual void save(TFile *f, string path)