Now with enough significant figures to see the uncertainty.

This commit is contained in:
redford_s
2017-11-30 14:09:20 +01:00
parent 1458edfbda
commit c331e229dd

View File

@ -124,9 +124,9 @@ int main(int argc, char* argv[]) {
pave->SetTextSize(0.04); pave->SetTextSize(0.04);
pave->SetTextAlign(32); pave->SetTextAlign(32);
TF1* diff_hist_gaus = diff_g0overg1_hist->GetFunction("gaus"); TF1* diff_hist_gaus = diff_g0overg1_hist->GetFunction("gaus");
sprintf(savename,"Mean %0.2f #pm %0.2f", diff_hist_gaus->GetParameter(1), diff_hist_gaus->GetParError(1)); sprintf(savename,"Mean %0.3f #pm %0.3f", diff_hist_gaus->GetParameter(1), diff_hist_gaus->GetParError(1));
pave->AddText((const char *)(savename)); pave->AddText((const char *)(savename));
sprintf(savename,"Sigma %0.2f #pm %0.2f", diff_hist_gaus->GetParameter(2), diff_hist_gaus->GetParError(2)); sprintf(savename,"Sigma %0.3f #pm %0.3f", diff_hist_gaus->GetParameter(2), diff_hist_gaus->GetParError(2));
pave->AddText((const char *)(savename)); pave->AddText((const char *)(savename));
pave->Draw(); pave->Draw();
diff_g0overg1_hist->SetStats(kFALSE); diff_g0overg1_hist->SetStats(kFALSE);
@ -149,9 +149,9 @@ int main(int argc, char* argv[]) {
c1->Update(); c1->Update();
TF1* pull_hist_gaus = pull_hist->GetFunction("gaus"); TF1* pull_hist_gaus = pull_hist->GetFunction("gaus");
pave->Clear(); pave->Clear();
sprintf(savename,"Mean %0.2f #pm %0.2f", pull_hist_gaus->GetParameter(1), pull_hist_gaus->GetParError(1)); sprintf(savename,"Mean %0.3f #pm %0.3f", pull_hist_gaus->GetParameter(1), pull_hist_gaus->GetParError(1));
pave->AddText((const char *)(savename)); pave->AddText((const char *)(savename));
sprintf(savename,"Sigma %0.2f #pm %0.2f", pull_hist_gaus->GetParameter(2), pull_hist_gaus->GetParError(2)); sprintf(savename,"Sigma %0.3f #pm %0.3f", pull_hist_gaus->GetParameter(2), pull_hist_gaus->GetParError(2));
pave->AddText((const char *)(savename)); pave->AddText((const char *)(savename));
pave->Draw(); pave->Draw();
pull_hist->SetStats(kFALSE); pull_hist->SetStats(kFALSE);