LibRootIntegration: errors are taken from histograms for chi^2