See this old post (in the old “TH1F variable bin width” thread).
Try:
// ...
TF1 *funcFit = new TF1("funcFit", "gausn(0) + pol0(3) + gausn(4)", limInf, limSup);
funcFit->SetParName(0, "Area");
// ...
funcFit->SetParName(4, "Area_PileUp");
// ...
See this old post (in the old “TH1F variable bin width” thread).
Try:
// ...
TF1 *funcFit = new TF1("funcFit", "gausn(0) + pol0(3) + gausn(4)", limInf, limSup);
funcFit->SetParName(0, "Area");
// ...
funcFit->SetParName(4, "Area_PileUp");
// ...