BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
fitSpectrum.C File Reference
#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"
Include dependency graph for fitSpectrum.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)

Function Documentation

◆ background()

Double_t background ( Double_t * xx,
Double_t * p )

Definition at line 15 of file fitSpectrum.C.

References i, order, and x.

Referenced by fitFunction().

Here is the caller graph for this function:

◆ fitFunction()

Double_t fitFunction ( Double_t * x,
Double_t * par )

Definition at line 61 of file fitSpectrum.C.

References background(), signal(), and x.

Here is the call graph for this function:

◆ fitSpectrum()

◆ lorentzianPeak()

Double_t lorentzianPeak ( Double_t * x,
Double_t * par )

Definition at line 53 of file fitSpectrum.C.

References TMath::Max(), TMath::Pi(), and x.

Here is the call graph for this function:

◆ signal()

Double_t signal ( Double_t * xx,
Double_t * p )

Definition at line 44 of file fitSpectrum.C.

References TMath::Exp().

Referenced by fitFunction().

Here is the call graph for this function:
Here is the caller graph for this function: