See: [url]Reading the result of a fit from a file Search for “associated functions” in TH1 and TGraph documentation.