Hi Ray, I will add a TF1::SetFunction in the next release. After having read back your TGraph (or TH1) object with a fitted function, you can call graph->GetFunction("name")->SetFunction(fcn). As you have found out, it is not possible to save in the TGraph object the compiled function. Instead, I save an array of points where the function has been computed in such a way that you can at least draw the shape of the function in a new session. Rene Brun On Mon, 15 Oct 2001, Ray Fliller III wrote: > > > I am using ROOT CVS version as of 10/12 on Linux. > > I want make a TF1 with a compiled function, fit a graph, > write the graph to a file, read the graph back later, and fit with > the function stored in the graph. > > After looking around, I see that the member point fFunction is > no reset. Assuming that the compiled function in question is > loaded every session, fFunction is of course different every time, > so I understand not saving it. But is there a way to do the above > operation?? > > > > -- > > RAINMAN > "How much does a piece of gum cost Ray?" > "About $100." > "How much does a new car cost Ray?" > "`Bout $100." > "There goes working for NASA!" > > ================================================================== > Ray Fliller: rfliller@bnl.gov Office Phone: (631)-344-6124 > C-A Accelerator Physics Dept. Fax: (631)-344-5954 > Building 911B > Brookhaven National Lab > Upton, NY 11973 Office: Room 211 > > http://www.agsrhichome.bnl.gov/People/rfliller/ > ================================================================== >
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:03 MET