Can someone tell me the code for manually changing how the error bars are calculated…
I am trying to change them to be calculated for an efficiency ratio histogram.
Thanks
-Matt
Can someone tell me the code for manually changing how the error bars are calculated…
I am trying to change them to be calculated for an efficiency ratio histogram.
Thanks
-Matt
Hi Matt,
for an histogram just use TH1::SetBinError(bin, error) and loop on all the binis you want to change
root.cern.ch/root/htmldoc/TH1.ht … etBinError
for a TGraphErrors you can use SetPointError( ipoint, ex, ey)
root.cern.ch/root/htmldoc/TGraph … PointError
Regards
Lorenzo