I’m sure this is covered somewhere, but I can’t find it.
I’m writing a C program (athena based) using root histograms. I use the code:
ampHist->Fit("gaus","QL","",lowbound,highbound);
TF1 * fittedFunction = ampHist->GetFunction("gaus");
Should I delete fittedFunction after I’m done with it? Or does ampHist retain ownership?
Thanks
[/code][/quote]