[code]initialBin=hist3D.GetBin(1,biny/2,binz/2)
rootValX=r.TH1D(“valsX”,“Distribution drawn with error bars (option E1)”, binx, minx, maxx)
valuesOnX=[]
for i in xrange(0,binx):
valuesOnX.append(hist3D.GetBinContent(initialBin+i))
rootValX.SetBinContent(i+1 ,hist3D.GetBinContent(initialBin+i))
The errors in X are just the bin width, by default half of the bin width (when gStyle->SetErrorX(0.5) )
In case of an histogram they should then not considered as uncertainty on the X values.