CbmRoot
|
#include <PairAnalysisFunction.h>
Public Types | |
enum | EFunction { kBoltzmann = 0, kPtExp, kHagedorn, kLevi } |
Public Member Functions | |
PairAnalysisFunction () | |
PairAnalysisFunction (const char *name, const char *title) | |
PairAnalysisFunction (const PairAnalysisFunction &c) | |
virtual | ~PairAnalysisFunction () |
void | SetParticleOfInterest (Int_t pdgcode) |
void | SetFitRange (Double_t min, Double_t max) |
void | SetUseIntegral (Bool_t flag=kTRUE) |
void | SetFitOption (const char *opt) |
void | SetMCSignalShape (TH1F *hist) |
void | SetFunctions (TF1 *const combined, TF1 *const sig=0, TF1 *const back=0, Int_t parM=1, Int_t parMres=2) |
void | SetDefault (EFunction predefinedFunc) |
void | SetDefaults (Int_t type) |
void | CombineFunc (TF1 *const peak=0, TF1 *const bgnd=0) |
Double_t | PeakFunMC (const Double_t *x, const Double_t *par) |
Double_t | PeakFunCB (const Double_t *x, const Double_t *par) |
Double_t | PeakFunGauss (const Double_t *x, const Double_t *par) |
Double_t | PeakFunPowGaussPow (const Double_t *x, const Double_t *par) |
Double_t | PeakFunExpGaussExp (const Double_t *x, const Double_t *par) |
TF1 * | GetBoltzmann () |
TF1 * | GetPtExp () |
TF1 * | GetHagedorn () |
TF1 * | GetLevi () |
TF1 * | GetSignalFunction () const |
TF1 * | GetBackgroundFunction () const |
TF1 * | GetCombinedFunction () const |
Int_t | GetParticleOfInterest () const |
Int_t | GetDof () const |
Double_t | GetChi2Dof () const |
Double_t | GetFitMin () const |
Double_t | GetFitMax () const |
PairAnalysisFunction () | |
PairAnalysisFunction (const char *name, const char *title) | |
PairAnalysisFunction (const PairAnalysisFunction &c) | |
PairAnalysisFunction & | operator= (const PairAnalysisFunction &c) |
virtual | ~PairAnalysisFunction () |
void | SetUseIntegral (Bool_t flag=kTRUE) |
void | SetFitOption (const char *opt) |
void | SetFunction (TF1 *const combined, TF1 *const sig=0, TF1 *const back=0, Int_t parM=1, Int_t parMres=2) |
void | SetDefaults (Int_t type) |
void | CombineFunc (TF1 *const peak=0, TF1 *const bgnd=0) |
Double_t | PeakFunMC (const Double_t *x, const Double_t *par) |
Double_t | PeakFunCB (const Double_t *x, const Double_t *par) |
Double_t | PeakFunGaus (const Double_t *x, const Double_t *par) |
TF1 * | GetSignalFunction () const |
TF1 * | GetBackgroundFunction () const |
TF1 * | GetCombinedFunction () const |
Int_t | GetDof () const |
Double_t | GetChi2Dof () const |
virtual void | Draw (const Option_t *option="") |
virtual void | Print (Option_t *option="") const |
Protected Member Functions | |
Double_t | PeakBgndFun (const Double_t *x, const Double_t *par) |
PairAnalysisFunction & | operator= (const PairAnalysisFunction &c) |
Double_t | PeakBgndFun (const Double_t *x, const Double_t *par) |
Protected Attributes | |
TF1 * | fFuncSignal = NULL |
TF1 * | fFuncBackground = NULL |
TF1 * | fFuncSigBack = NULL |
Double_t | fFitMin = 0. |
Double_t | fFitMax = 0. |
TParticlePDG * | fPOI = NULL |
Int_t | fPOIpdg = 443 |
Int_t | fParMass |
Int_t | fParMassWidth |
TString | fFitOpt = "SMNQE" |
Bool_t | fUseIntegral |
Int_t | fDof = 0 |
Double_t | fChi2Dof = 0. |
Int_t | fNparPeak = 0 |
Int_t | fNparBgnd = 0 |
Static Protected Attributes | |
static TH1F * | fgHistSimPM |
Definition at line 22 of file PairAnalysisFunction.h.
Enumerator | |
---|---|
kBoltzmann | |
kPtExp | |
kHagedorn | |
kLevi |
Definition at line 25 of file PairAnalysisFunction.h.
PairAnalysisFunction::PairAnalysisFunction | ( | ) |
Referenced by PairAnalysisSignalExt::DescribePeakShape().
PairAnalysisFunction::PairAnalysisFunction | ( | const char * | name, |
const char * | title | ||
) |
Definition at line 68 of file PairAnalysisFunction.cxx.
PairAnalysisFunction::PairAnalysisFunction | ( | const PairAnalysisFunction & | c | ) |
Definition at line 76 of file PairAnalysisFunction.cxx.
|
virtual |
Definition at line 88 of file PairAnalysisFunction.cxx.
References fFuncBackground, fFuncSigBack, and fFuncSignal.
PairAnalysisFunction::PairAnalysisFunction | ( | ) |
PairAnalysisFunction::PairAnalysisFunction | ( | const char * | name, |
const char * | title | ||
) |
PairAnalysisFunction::PairAnalysisFunction | ( | const PairAnalysisFunction & | c | ) |
|
virtual |
void PairAnalysisFunction::CombineFunc | ( | TF1 *const | peak = 0 , |
TF1 *const | bgnd = 0 |
||
) |
void PairAnalysisFunction::CombineFunc | ( | TF1 *const | peak = 0 , |
TF1 *const | bgnd = 0 |
||
) |
Definition at line 314 of file PairAnalysisFunction.cxx.
References fFitMax, fFitMin, fFuncBackground, fFuncSigBack, fFuncSignal, fNparBgnd, fNparPeak, and PeakBgndFun().
|
virtual |
Reimplemented in PairAnalysisSignalExt, and PairAnalysisSignalFit.
|
inline |
Definition at line 56 of file PairAnalysisSignalFunc.h.
References fFuncBackground.
|
inline |
Definition at line 82 of file PairAnalysisFunction.h.
References fFuncBackground.
TF1 * PairAnalysisFunction::GetBoltzmann | ( | ) |
Definition at line 361 of file PairAnalysisFunction.cxx.
References fFuncSigBack, and fPOI.
Referenced by SetDefault().
|
inline |
Definition at line 60 of file PairAnalysisSignalFunc.h.
References fChi2Dof.
|
inline |
Definition at line 87 of file PairAnalysisFunction.h.
References fChi2Dof.
|
inline |
Definition at line 57 of file PairAnalysisSignalFunc.h.
References fFuncSigBack.
|
inline |
Definition at line 83 of file PairAnalysisFunction.h.
References fFuncSigBack.
Referenced by PairAnalysisSignalExt::DescribePeakShape().
|
inline |
Definition at line 59 of file PairAnalysisSignalFunc.h.
References fDof.
|
inline |
Definition at line 86 of file PairAnalysisFunction.h.
References fDof.
|
inline |
Definition at line 89 of file PairAnalysisFunction.h.
References fFitMax.
|
inline |
Definition at line 88 of file PairAnalysisFunction.h.
References fFitMin.
TF1 * PairAnalysisFunction::GetHagedorn | ( | ) |
Definition at line 385 of file PairAnalysisFunction.cxx.
References fFuncSigBack.
Referenced by SetDefault().
TF1 * PairAnalysisFunction::GetLevi | ( | ) |
Definition at line 398 of file PairAnalysisFunction.cxx.
References fFuncSigBack, and fPOI.
Referenced by SetDefault().
|
inline |
Definition at line 85 of file PairAnalysisFunction.h.
References fPOIpdg.
TF1 * PairAnalysisFunction::GetPtExp | ( | ) |
Definition at line 375 of file PairAnalysisFunction.cxx.
References fFuncSigBack.
Referenced by SetDefault().
|
inline |
Definition at line 55 of file PairAnalysisSignalFunc.h.
References fFuncSignal.
|
inline |
Definition at line 81 of file PairAnalysisFunction.h.
References fFuncSignal.
PairAnalysisFunction& PairAnalysisFunction::operator= | ( | const PairAnalysisFunction & | c | ) |
|
protected |
|
protected |
|
protected |
Definition at line 339 of file PairAnalysisFunction.cxx.
References fFuncBackground, fFuncSignal, fNparPeak, and x.
Referenced by CombineFunc().
Double_t PairAnalysisFunction::PeakFunCB | ( | const Double_t * | x, |
const Double_t * | par | ||
) |
Double_t PairAnalysisFunction::PeakFunCB | ( | const Double_t * | x, |
const Double_t * | par | ||
) |
Definition at line 121 of file PairAnalysisFunction.cxx.
References x.
Referenced by PairAnalysisSignalExt::DescribePeakShape().
Double_t PairAnalysisFunction::PeakFunExpGaussExp | ( | const Double_t * | x, |
const Double_t * | par | ||
) |
Definition at line 177 of file PairAnalysisFunction.cxx.
References x.
Double_t PairAnalysisFunction::PeakFunGaus | ( | const Double_t * | x, |
const Double_t * | par | ||
) |
Definition at line 130 of file PairAnalysisSignalFunc.cxx.
References x.
Double_t PairAnalysisFunction::PeakFunGauss | ( | const Double_t * | x, |
const Double_t * | par | ||
) |
Definition at line 202 of file PairAnalysisFunction.cxx.
References x.
Referenced by PairAnalysisSignalExt::DescribePeakShape().
Double_t PairAnalysisFunction::PeakFunMC | ( | const Double_t * | x, |
const Double_t * | par | ||
) |
Double_t PairAnalysisFunction::PeakFunMC | ( | const Double_t * | x, |
const Double_t * | par | ||
) |
Definition at line 99 of file PairAnalysisFunction.cxx.
References fgHistSimPM, and x.
Referenced by PairAnalysisSignalExt::DescribePeakShape().
Double_t PairAnalysisFunction::PeakFunPowGaussPow | ( | const Double_t * | x, |
const Double_t * | par | ||
) |
Definition at line 148 of file PairAnalysisFunction.cxx.
References x.
|
virtual |
Reimplemented in PairAnalysisSignalExt, and PairAnalysisSignalFit.
Definition at line 264 of file PairAnalysisSignalFunc.cxx.
void PairAnalysisFunction::SetDefault | ( | EFunction | predefinedFunc | ) |
use a predefined function, that internally sets the "fFuncSigBack"
Definition at line 240 of file PairAnalysisFunction.cxx.
References GetBoltzmann(), GetHagedorn(), GetLevi(), GetPtExp(), kBoltzmann, kHagedorn, kLevi, and kPtExp.
void PairAnalysisFunction::SetDefaults | ( | Int_t | type | ) |
void PairAnalysisFunction::SetDefaults | ( | Int_t | type | ) |
Definition at line 254 of file PairAnalysisFunction.cxx.
References fFuncBackground, fFuncSigBack, and fFuncSignal.
|
inline |
Definition at line 32 of file PairAnalysisSignalFunc.h.
References fFitOpt.
|
inline |
Definition at line 46 of file PairAnalysisFunction.h.
References fFitOpt.
|
inline |
void PairAnalysisFunction::SetFunction | ( | TF1 *const | combined, |
TF1 *const | sig = 0 , |
||
TF1 *const | back = 0 , |
||
Int_t | parM = 1 , |
||
Int_t | parMres = 2 |
||
) |
void PairAnalysisFunction::SetFunctions | ( | TF1 *const | combined, |
TF1 *const | sig = 0 , |
||
TF1 *const | back = 0 , |
||
Int_t | parM = 1 , |
||
Int_t | parMres = 2 |
||
) |
Definition at line 216 of file PairAnalysisFunction.cxx.
References fFuncBackground, fFuncSigBack, fFuncSignal, fParMass, and fParMassWidth.
|
inline |
Definition at line 52 of file PairAnalysisFunction.h.
References fgHistSimPM.
|
inline |
Definition at line 37 of file PairAnalysisFunction.h.
|
inline |
Definition at line 31 of file PairAnalysisSignalFunc.h.
References fUseIntegral.
|
inline |
Definition at line 45 of file PairAnalysisFunction.h.
References fUseIntegral.
|
protected |
Definition at line 121 of file PairAnalysisFunction.h.
Referenced by GetChi2Dof(), PairAnalysisSignalFit::Print(), and Print().
|
protected |
Definition at line 120 of file PairAnalysisFunction.h.
Referenced by GetDof(), PairAnalysisSignalFit::Print(), and Print().
|
protected |
Definition at line 107 of file PairAnalysisFunction.h.
Referenced by CombineFunc(), PairAnalysisSignalExt::DescribePeakShape(), PairAnalysisSignalFit::Draw(), GetFitMax(), PairAnalysisSignalFit::Print(), Print(), PairAnalysisSignalFit::ProcessFit(), PairAnalysisSignalFit::ProcessFitLS(), and SetFitRange().
|
protected |
Definition at line 106 of file PairAnalysisFunction.h.
Referenced by CombineFunc(), PairAnalysisSignalExt::DescribePeakShape(), PairAnalysisSignalFit::Draw(), GetFitMin(), PairAnalysisSignalFit::Print(), Print(), PairAnalysisSignalFit::ProcessFit(), PairAnalysisSignalFit::ProcessFitLS(), and SetFitRange().
|
protected |
Definition at line 116 of file PairAnalysisFunction.h.
Referenced by PairAnalysisSignalFit::ProcessFit(), PairAnalysisSignalFit::ProcessFitLS(), and SetFitOption().
|
protected |
Definition at line 103 of file PairAnalysisFunction.h.
Referenced by CombineFunc(), PairAnalysisSignalFit::Draw(), GetBackgroundFunction(), PeakBgndFun(), PairAnalysisSignalFit::ProcessFit(), PairAnalysisSignalFit::ProcessFitLS(), SetDefaults(), SetFunctions(), and ~PairAnalysisFunction().
|
protected |
Definition at line 104 of file PairAnalysisFunction.h.
Referenced by CombineFunc(), PairAnalysisSignalFit::Draw(), GetBoltzmann(), GetCombinedFunction(), GetHagedorn(), GetLevi(), GetPtExp(), PairAnalysisSignalFit::ProcessFit(), PairAnalysisSignalFit::ProcessFitLS(), SetDefaults(), SetFunctions(), and ~PairAnalysisFunction().
|
protected |
Definition at line 102 of file PairAnalysisFunction.h.
Referenced by CombineFunc(), GetSignalFunction(), PeakBgndFun(), PairAnalysisSignalFit::ProcessFit(), SetDefaults(), SetFunctions(), and ~PairAnalysisFunction().
|
staticprotected |
Definition at line 96 of file PairAnalysisFunction.h.
Referenced by PeakFunMC(), and SetMCSignalShape().
|
protected |
Definition at line 124 of file PairAnalysisFunction.h.
Referenced by CombineFunc().
|
protected |
Definition at line 123 of file PairAnalysisFunction.h.
Referenced by CombineFunc(), and PeakBgndFun().
|
protected |
Definition at line 111 of file PairAnalysisFunction.h.
Referenced by PairAnalysisSignalFit::ProcessFit(), PairAnalysisSignalFit::ProcessFitLS(), and SetFunctions().
|
protected |
Definition at line 113 of file PairAnalysisFunction.h.
Referenced by PairAnalysisSignalFit::ProcessFit(), PairAnalysisSignalFit::ProcessFitLS(), and SetFunctions().
|
protected |
Definition at line 109 of file PairAnalysisFunction.h.
Referenced by PairAnalysisSignalExt::DrawStats(), GetBoltzmann(), GetLevi(), and SetParticleOfInterest().
|
protected |
Definition at line 110 of file PairAnalysisFunction.h.
Referenced by PairAnalysisSignalExt::DescribePeakShape(), GetParticleOfInterest(), and SetParticleOfInterest().
|
protected |
Definition at line 117 of file PairAnalysisFunction.h.
Referenced by PairAnalysisSignalFit::ProcessFit(), and SetUseIntegral().