Dear Roottalk people,
I have a TH2D histogram from which I get a TProfile by doing ProfileX(), from the TProfile I want to get the results in an array (numpy array) which I do by doing:
np.frombuffer(prf.GetArray(),‘d’, prf.GetNbinsX(), 0)
I also get the results in a python list by looping over all the bins and using GetBinContent. And I am not getting the same results…by the values I can guess the difference, but could you tell me what it is just to be sure? and is there a way to do what I want? i.e. instead of looping over all the bins and using GetBinContent and GetBinError, just dump all the values and errors in an array?
Thanks a lot in advance!!