3 residu(TString baseName,
double min=-1.5,
double max=1.5)
8 name +=
"_a"; TH1D * amp =
new TH1D(name,name,55,0,54.);
10 name +=
"_mean"; TH1D * mean =
new TH1D(name,name,55,0,54.);
12 name +=
"_rms"; TH1D * rms =
new TH1D(name,name,55,0,54.);
17 for(
int i=0; i<51;i++)
30 h=(TH1D*)gDirectory->Get(thisL);
31 h->Fit(
"gaus",
"",
"",xMin,xMax);
32 double entries = h->GetEntries();
36 f = h->GetFunction(
"gaus");
37 double a = f->GetParameter(
"Constant");
double ea = f->GetParError(0);
38 double m = f->GetParameter(
"Mean");
double em = f->GetParError(1);
39 double r = f->GetParameter(
"Sigma");
double er = f->GetParError(2);
40 amp->SetBinContent(ii,a);amp->SetBinError(ii,ea);
41 mean->SetBinContent(ii,m);mean->SetBinError(ii,em);
42 rms->SetBinContent(ii,r);rms->SetBinError(ii,er);
45 cout <<
"Fitting completed" << endl;
49 c1->cd(1); amp->Draw();
50 c1->cd(2); mean->Draw();
51 c1->cd(3); rms->Draw();