diff --git a/hist/src/TF1Helper.cxx b/hist/src/TF1Helper.cxx index 4dc97006cae4e7b257b604d6dc69274c17ed5d7a..ee04d25510fd8a02e14c8bc39d847e9f66c92703 100644 --- a/hist/src/TF1Helper.cxx +++ b/hist/src/TF1Helper.cxx @@ -17,6 +17,8 @@ #include <cmath> #include <cassert> +#include <iostream> + namespace ROOT { @@ -83,8 +85,10 @@ double IntegralError(TF1 * func, double a, double b, double epsilon) { double err2 = 0; for (int i = 0; i < nfreepar; ++i) { double s = 0; - for (int j =0; j < nfreepar; ++j) - s += ig[j] * covMatrix[i*nfreepar + j] ; + for (int j =0; j < nfreepar; ++j) { + std::cout << i << " " << j << " ig " << ig[i] << " " << ig[j] << " " << covMatrix[i*npar + j] << " " << s << std::endl; + s += ig[j] * covMatrix[i*npar + j] ; + } err2 += ig[i] * s; }