Hi @Wile_E_Coyote ,i used your code for the re-binning and it worked, but I had also to cut some data and I need 2 use 2 gaussian fit. Following your reply in this topic Fitting with two gaussian curves , I got a good 2 gaussian fit. Anyway, in the statistical box, I get the mean value of the 2 separated fits, instead I’d like to get also the mean and sigma values of the produced by your code of the total fit.
Should it be possible?
Following @couet reply to this topic Adding text to statistics box I wrote
TPaveStats *statsgdeltatime = (TPaveStats*)htemp->GetListOfFunctions()->FindObject("stats");
statsgdeltatime->SetTextColor(kBlue);
statsgdeltatime->SetX1NDC(0.80); statsgdeltatime->SetX2NDC(0.98);
statsgdeltatime->SetY1NDC(0.77); statsgdeltatime->SetY2NDC(0.92);
statsgdeltatime->AddText("Mean %lf \n #sigma %lf",mean,sigma);
statsgdeltatime->DrawClone();
gPad->Update();
but I get error.