Asif Saddique
2012-12-20 02:08:44 UTC
Hi,
Can you please give some feedback on the following issue.
I have two weighted histograms, to take effects of weights into errors i
require Sumw2 before filling histograms.
h_2->Sumw2(); h_3->Sumw2();
EventLoop{
h_2->Fill(pT1,weight);
h_3->Fill(pT2,weight);
}
The error bars seems alright in h_2 and h_3 {smaller in high statistics
region and bigger in low statistics region} but when i divide them in
another histogram h_3to2 with same number of bins.
h_3to2->Sumw2(); // i think this line doesn't make any effect
h_3to2 ->Divide(h_3, h_2);
I was expecting smaller error bars in the starting bins(high stat.) and
then should get bigger and bigger with increasing bins but the error bars
look almost the same for all bins. Am i missing something ? or any other
suggestion to obtain ratio with correct error bars?
Cheers,
Asif
Can you please give some feedback on the following issue.
I have two weighted histograms, to take effects of weights into errors i
require Sumw2 before filling histograms.
h_2->Sumw2(); h_3->Sumw2();
EventLoop{
h_2->Fill(pT1,weight);
h_3->Fill(pT2,weight);
}
The error bars seems alright in h_2 and h_3 {smaller in high statistics
region and bigger in low statistics region} but when i divide them in
another histogram h_3to2 with same number of bins.
h_3to2->Sumw2(); // i think this line doesn't make any effect
h_3to2 ->Divide(h_3, h_2);
I was expecting smaller error bars in the starting bins(high stat.) and
then should get bigger and bigger with increasing bins but the error bars
look almost the same for all bins. Am i missing something ? or any other
suggestion to obtain ratio with correct error bars?
Cheers,
Asif