5#ifndef PAIRANALYSISFUNCTION_H
6#define PAIRANALYSISFUNCTION_H
17#include <TDatabasePDG.h>
22#include <TParticlePDG.h>
50 fPOI = TDatabasePDG::Instance()->GetParticle(
fPOIpdg);
66 void SetFunctions(TF1*
const combined, TF1*
const sig = 0, TF1*
const back = 0, Int_t parM = 1, Int_t parMres = 2);
70 void CombineFunc(TF1*
const peak = 0, TF1*
const bgnd = 0);
77 Double_t
PeakFunGauss(
const Double_t*
x,
const Double_t* par);
108 const Double_t* par);
friend fscal max(fscal x, fscal y)
friend fscal min(fscal x, fscal y)
Double_t GetChi2Dof() const
void SetParticleOfInterest(Int_t pdgcode)
Double_t GetFitMax() const
TF1 * GetSignalFunction() const
void SetFunctions(TF1 *const combined, TF1 *const sig=0, TF1 *const back=0, Int_t parM=1, Int_t parMres=2)
virtual ~PairAnalysisFunction()
Double_t PeakFunExpGaussExp(const Double_t *x, const Double_t *par)
void SetFitRange(Double_t min, Double_t max)
Double_t PeakFunGauss(const Double_t *x, const Double_t *par)
Double_t PeakBgndFun(const Double_t *x, const Double_t *par)
TF1 * GetCombinedFunction() const
Double_t PeakFunMC(const Double_t *x, const Double_t *par)
void CombineFunc(TF1 *const peak=0, TF1 *const bgnd=0)
Double_t PeakFunPowGaussPow(const Double_t *x, const Double_t *par)
static TH1F * fgHistSimPM
Double_t PeakFunCB(const Double_t *x, const Double_t *par)
void SetDefaults(Int_t type)
void SetMCSignalShape(TH1F *hist)
TF1 * GetBackgroundFunction() const
Double_t GetFitMin() const
Int_t GetParticleOfInterest() const
void SetFitOption(const char *opt)
void SetUseIntegral(Bool_t flag=kTRUE)
PairAnalysisFunction & operator=(const PairAnalysisFunction &c)
void SetDefault(EFunction predefinedFunc)