From c331e229ddb3c0dfb47e5719df011ba498d22806 Mon Sep 17 00:00:00 2001 From: redford_s Date: Thu, 30 Nov 2017 14:09:20 +0100 Subject: [PATCH] Now with enough significant figures to see the uncertainty. --- BP_DB_Comp.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/BP_DB_Comp.cpp b/BP_DB_Comp.cpp index 85f8727..597060c 100644 --- a/BP_DB_Comp.cpp +++ b/BP_DB_Comp.cpp @@ -124,9 +124,9 @@ int main(int argc, char* argv[]) { pave->SetTextSize(0.04); pave->SetTextAlign(32); 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)); - 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->Draw(); diff_g0overg1_hist->SetStats(kFALSE); @@ -149,9 +149,9 @@ int main(int argc, char* argv[]) { c1->Update(); TF1* pull_hist_gaus = pull_hist->GetFunction("gaus"); 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)); - 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->Draw(); pull_hist->SetStats(kFALSE);