I have a macro that calls a fitting routine many times. The routine creates a bunch of functions with new (so that I have access to the parameters after the fit). I will typically use 3-4 functions to fit a histogram, and return a pointer to the “total” function back to the macro. I do not really understand who owns the functions. Do they belong to the histogram? Do I need to make sure I delete them at the end of each call, or does ROOT take care of that?
Since it’s not always clear to me what a high-level vs low-level object is (if it’s not explicitly mentioned in Ch.8 of the User’s Guid), is there a command in the ROOT session that can show me this?