and I’d like to understand how errors are calculated for the resulting histogram. It’s said to be “The resulting errors are calculated assuming uncorrelated histograms” but I don’t understand what does it mean.
I’m not using the “B” option for binomial errors, c1 and c2 are set to 1 and TH1::Sumw2() is previously called for the two input histograms h1 and h2.
In that case the errors are calculated in the following way:
If for bin i, the bin content of the first histogram is c0 and of the second - c1, the bin errors are e0 and e1 respectively, then the square of error, assigned to this bin i, is equal to
(e0e0c1c1 + e1e1c0c0)/(c1c1c1*c1)
Is that what you wanted to know or I misunderstood your question?