Getting fit parameters from TGraphErrors saved to file

I have a TGraphErrors object named Energy_Resolution written to a root file. Energy_Resolution has a fit which is displayed along with the fit parameters when I open the file and do Energy_Resolution->Draw() in the CLI. How can I access this fit I see? I would hope to do something like Energy_Resolution->GetFit(), but I don’t see such a function in the class reference.

ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided

nvm found it. how can i delete this post?

The solution (for others)


I’ll add that EnergyResolution->GetListOfFunctions() was helpful to get the name of the functions.

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