I have a histogram containing 5 bins attached in the file with the name “hist_all_bkg_4e”, this histograms comes from other histograms in the file which have in their name “4e”. The histograms are first filled with their weight, then normalized (by their cross section, lumi,…) and merged to get “hist_all_bkg_4e”. To get the error on bin 2 for instance I do:
hist_all_bkg_4e->Sumw2(); double Error_all_bkg_4e_A = hist_all_bkg_4e->GetBinError(2);
and as you can see the error is only: 2.66, while the number of events in bin 2 is 492.499, so the error 2.66 seems to be small if I compared for instance with sqrt(492.499), so I am wondering if the way I calculated the error is correct.
Could anyone help please ?summary.root (117.4 KB)
if needed I can give you the link of my git where you can find my entire code.
ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided