What does the BinError means in the histogram obtained by ROOT

I got a histogram of doses in water by G4AnalysisManager analysis->FillH1(1, x / cm, energy ) . When plot histogram, errorbar could be seen. So how the error is calculated ? And what errorbar means.
Thank you very much.

Hello,
Please, see the ROOT documentation:
https://root.cern/doc/master/classTH1.html#filling-histograms
and follow “Associated errors” to see how the errors are computed.

As the G4 histograms are saved in ROOT with the storage of the bin errors, these are then displayed by default when you draw a histogram with ROOT without specifying any option.

If you want to get your histogram drawn without errors, you can call Draw() with “HIST” option:

myHisto-> Draw("HIST");

Best regards,

1 Like

Thank you very much :smile:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.