3 gROOT->SetStyle(
"Plain");
5 gStyle->SetOptFit(1111);
6 TCanvas *
c1 =
new TCanvas();
8 for(
int i = 1;
i <= 8;
i++) {
10 TF1 *gaus = (TF1*)
gROOT->GetFunction(
"gaus");
11 gaus->SetLineColor(kRed);
12 gaus->SetLineWidth(1);
15 TH1 *py =
samples->ProjectionY(title,
i,
i);
18 py->GetXaxis()->SetRange(py->GetMean()-9*py->GetRMS(), py->GetMean()+9*py->GetRMS());
20 py->Fit(
"gaus",
"LR",
"SAME",py->GetMean()-9*py->GetRMS(), py->GetMean()+9*py->GetRMS());
23 py->Fit(
"gaus",
"",
"",x_min, x_max);