If I have a histogram h1 and I do something like:
h1->Fit(“expo”,"","",0,10);
h1->Fit(“expo”,"+","",10,20);
Is there a way to retrieve the second function using h1->GetFunction?
If I have a histogram h1 and I do something like:
h1->Fit(“expo”,"","",0,10);
h1->Fit(“expo”,"+","",10,20);
Is there a way to retrieve the second function using h1->GetFunction?
do:
TF1 *f1 = h1->GetFunction("expo");
TF1 *f2 = (TF1*)h1->GetListOfFunctions()->After(f1);
Rene