Now with enough significant figures to see the uncertainty.
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user