169 if (
InputHist == NULL || OutMean == NULL || OutSigma == NULL) {
173 if (recalg_path ==
"Z") {
175 fit1->SetLineColor(kRed);
176 fit1->SetParameter(0, 3.0);
177 fit1->SetParameter(1, 91.2);
178 fit1->SetParameter(2,
InputHist->GetEntries());
179 fit1->SetParameter(3, 1.0);
180 InputHist->Fit(
"fit1",
"q",
"", 77, 105);
182 OutMean->SetBinContent(iBin, fit1->GetParameter(1));
183 OutMean->SetBinError(iBin, fit1->GetParError(1));
184 OutSigma->SetBinContent(iBin, fit1->GetParameter(0));
185 OutSigma->SetBinError(iBin, fit1->GetParError(0));
187 if (recalg_path ==
"Jpsi") {
188 InputHist->Fit(
"gaus",
"q",
"", 2.95, 3.25);
189 TF1* fit1 = (TF1*)
InputHist->GetFunction(
"gaus");
191 OutMean->SetBinContent(iBin, fit1->GetParameter(1));
192 OutMean->SetBinError(iBin, fit1->GetParError(1));
193 OutSigma->SetBinContent(iBin, fit1->GetParameter(2));
194 OutSigma->SetBinError(iBin, fit1->GetParError(2));
197 OutMean->SetBinContent(iBin,
InputHist->GetMean(1));
198 OutMean->SetBinError(iBin,
InputHist->GetMeanError(1));
199 OutSigma->SetBinContent(iBin,
InputHist->GetRMS(1));
200 OutSigma->SetBinError(iBin,
InputHist->GetRMSError(1));