|
BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
|
#include <Rtypes.h>#include <TCanvas.h>#include <TF1.h>#include <TFile.h>#include <TH1.h>#include <TString.h>#include <vector>#include "macro/run/bmnloadlibs.C"Go to the source code of this file.
Functions | |
| Double_t | background (Double_t *xx, Double_t *p) |
| Double_t | signal (Double_t *xx, Double_t *p) |
| Double_t | lorentzianPeak (Double_t *x, Double_t *par) |
| Double_t | fitFunction (Double_t *x, Double_t *par) |
| void | fitSpectrum (TString inFile, TString spectrumName) |
Definition at line 15 of file fitSpectrum.C.
Referenced by fitFunction().
Definition at line 61 of file fitSpectrum.C.
References background(), signal(), and x.
Definition at line 70 of file fitSpectrum.C.
References TMath::Abs(), TLegend::AddEntry(), background(), TAxis::CenterTitle(), TString::Data(), TH1::Draw(), TLegend::Draw(), f, TH1::Fit(), fitFunction(), fitSpectrum(), TH1::GetBinCenter(), TH1::GetBinError(), TH1::GetBinWidth(), TH1::GetNbinsX(), TH1::GetXaxis(), TH1::GetYaxis(), TF1::Integral(), n, ROOT::Fit::FitResult::Parameter(), TH1::SetBinError(), TAttAxis::SetLabelSize(), TAttLine::SetLineColor(), TAttLine::SetLineStyle(), TF1::SetNpx(), TF1::SetParameter(), TAttText::SetTextFont(), TAttText::SetTextSize(), TNamed::SetTitle(), TAttAxis::SetTitleOffset(), TAttAxis::SetTitleSize(), and signal().
Definition at line 53 of file fitSpectrum.C.
References TMath::Max(), TMath::Pi(), and x.
Definition at line 44 of file fitSpectrum.C.
References TMath::Exp().
Referenced by fitFunction().