--- UserCode/IPHCalignment2/analysis/Layout.cpp 2011/11/29 19:56:00 1.8 +++ UserCode/IPHCalignment2/analysis/Layout.cpp 2011/12/07 18:31:52 1.10 @@ -2,6 +2,8 @@ #include #include #include +#include +using namespace std; void Layout::DrawInit() { @@ -17,7 +19,7 @@ void Layout::DrawInit() gStyle->SetFrameBorderMode(0); gStyle->SetFrameBorderSize(0); gStyle->SetFrameFillColor(0); - gStyle->SetOptStat(0); + // gStyle->SetOptStat(0); gStyle->SetLabelOffset(0.005,"X"); gStyle->SetLabelSize(0.03,"X"); @@ -87,7 +89,6 @@ void Layout::Draw(const std::string titl TCanvas* mycanvas = new TCanvas((std::string(histos[0].histo->GetName())+ "_canvas").c_str(), histos[0].histo->GetTitle()); - // SetLineColor for (unsigned int i=0;i errors; for (unsigned int i=0;iSetParameter(0,K); fitter->SetParameter(1,MU); fitter->SetParameter(2,SIG); @@ -143,9 +144,9 @@ void Layout::Draw(const std::string titl { std::stringstream str; str << "#sigma_{" << histos[i].shortName <<"} = "; - str.precision(3); str << sigmas[i]; + str.precision(2); str.setf(ios_base::scientific); str << sigmas[i]; str << " #pm "; - str.precision(3); str << errors[i]; + str.precision(1); str.setf(ios_base::scientific); str << errors[i]; TText* mytext = myblock->AddText(str.str().c_str()); mytext->SetTextColor(histos[i].linecolor); mytext->SetTextAlign(11);