CbmRoot
PairAnalysisFunction Class Reference

#include <PairAnalysisFunction.h>

Inheritance diagram for PairAnalysisFunction:
[legend]
Collaboration diagram for PairAnalysisFunction:
[legend]

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)
 
PairAnalysisFunctionoperator= (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)
 
PairAnalysisFunctionoperator= (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
 

Detailed Description

Definition at line 22 of file PairAnalysisFunction.h.

Member Enumeration Documentation

◆ EFunction

Enumerator
kBoltzmann 
kPtExp 
kHagedorn 
kLevi 

Definition at line 25 of file PairAnalysisFunction.h.

Constructor & Destructor Documentation

◆ PairAnalysisFunction() [1/6]

PairAnalysisFunction::PairAnalysisFunction ( )

◆ PairAnalysisFunction() [2/6]

PairAnalysisFunction::PairAnalysisFunction ( const char *  name,
const char *  title 
)

Definition at line 68 of file PairAnalysisFunction.cxx.

◆ PairAnalysisFunction() [3/6]

PairAnalysisFunction::PairAnalysisFunction ( const PairAnalysisFunction c)

Definition at line 76 of file PairAnalysisFunction.cxx.

◆ ~PairAnalysisFunction() [1/2]

PairAnalysisFunction::~PairAnalysisFunction ( )
virtual

Definition at line 88 of file PairAnalysisFunction.cxx.

References fFuncBackground, fFuncSigBack, and fFuncSignal.

◆ PairAnalysisFunction() [4/6]

PairAnalysisFunction::PairAnalysisFunction ( )

◆ PairAnalysisFunction() [5/6]

PairAnalysisFunction::PairAnalysisFunction ( const char *  name,
const char *  title 
)

◆ PairAnalysisFunction() [6/6]

PairAnalysisFunction::PairAnalysisFunction ( const PairAnalysisFunction c)

◆ ~PairAnalysisFunction() [2/2]

virtual PairAnalysisFunction::~PairAnalysisFunction ( )
virtual

Member Function Documentation

◆ CombineFunc() [1/2]

void PairAnalysisFunction::CombineFunc ( TF1 *const  peak = 0,
TF1 *const  bgnd = 0 
)

◆ CombineFunc() [2/2]

void PairAnalysisFunction::CombineFunc ( TF1 *const  peak = 0,
TF1 *const  bgnd = 0 
)

◆ Draw()

virtual void PairAnalysisFunction::Draw ( const Option_t *  option = "")
virtual

◆ GetBackgroundFunction() [1/2]

TF1* PairAnalysisFunction::GetBackgroundFunction ( ) const
inline

Definition at line 56 of file PairAnalysisSignalFunc.h.

References fFuncBackground.

◆ GetBackgroundFunction() [2/2]

TF1* PairAnalysisFunction::GetBackgroundFunction ( ) const
inline

Definition at line 82 of file PairAnalysisFunction.h.

References fFuncBackground.

◆ GetBoltzmann()

TF1 * PairAnalysisFunction::GetBoltzmann ( )

Definition at line 361 of file PairAnalysisFunction.cxx.

References fFuncSigBack, and fPOI.

Referenced by SetDefault().

◆ GetChi2Dof() [1/2]

Double_t PairAnalysisFunction::GetChi2Dof ( ) const
inline

Definition at line 60 of file PairAnalysisSignalFunc.h.

References fChi2Dof.

◆ GetChi2Dof() [2/2]

Double_t PairAnalysisFunction::GetChi2Dof ( ) const
inline

Definition at line 87 of file PairAnalysisFunction.h.

References fChi2Dof.

◆ GetCombinedFunction() [1/2]

TF1* PairAnalysisFunction::GetCombinedFunction ( ) const
inline

Definition at line 57 of file PairAnalysisSignalFunc.h.

References fFuncSigBack.

◆ GetCombinedFunction() [2/2]

TF1* PairAnalysisFunction::GetCombinedFunction ( ) const
inline

Definition at line 83 of file PairAnalysisFunction.h.

References fFuncSigBack.

Referenced by PairAnalysisSignalExt::DescribePeakShape().

◆ GetDof() [1/2]

Int_t PairAnalysisFunction::GetDof ( ) const
inline

Definition at line 59 of file PairAnalysisSignalFunc.h.

References fDof.

◆ GetDof() [2/2]

Int_t PairAnalysisFunction::GetDof ( ) const
inline

Definition at line 86 of file PairAnalysisFunction.h.

References fDof.

◆ GetFitMax()

Double_t PairAnalysisFunction::GetFitMax ( ) const
inline

Definition at line 89 of file PairAnalysisFunction.h.

References fFitMax.

◆ GetFitMin()

Double_t PairAnalysisFunction::GetFitMin ( ) const
inline

Definition at line 88 of file PairAnalysisFunction.h.

References fFitMin.

◆ GetHagedorn()

TF1 * PairAnalysisFunction::GetHagedorn ( )

Definition at line 385 of file PairAnalysisFunction.cxx.

References fFuncSigBack.

Referenced by SetDefault().

◆ GetLevi()

TF1 * PairAnalysisFunction::GetLevi ( )

Definition at line 398 of file PairAnalysisFunction.cxx.

References fFuncSigBack, and fPOI.

Referenced by SetDefault().

◆ GetParticleOfInterest()

Int_t PairAnalysisFunction::GetParticleOfInterest ( ) const
inline

Definition at line 85 of file PairAnalysisFunction.h.

References fPOIpdg.

◆ GetPtExp()

TF1 * PairAnalysisFunction::GetPtExp ( )

Definition at line 375 of file PairAnalysisFunction.cxx.

References fFuncSigBack.

Referenced by SetDefault().

◆ GetSignalFunction() [1/2]

TF1* PairAnalysisFunction::GetSignalFunction ( ) const
inline

Definition at line 55 of file PairAnalysisSignalFunc.h.

References fFuncSignal.

◆ GetSignalFunction() [2/2]

TF1* PairAnalysisFunction::GetSignalFunction ( ) const
inline

Definition at line 81 of file PairAnalysisFunction.h.

References fFuncSignal.

◆ operator=() [1/2]

PairAnalysisFunction& PairAnalysisFunction::operator= ( const PairAnalysisFunction c)

◆ operator=() [2/2]

PairAnalysisFunction& PairAnalysisFunction::operator= ( const PairAnalysisFunction c)
protected

◆ PeakBgndFun() [1/2]

Double_t PairAnalysisFunction::PeakBgndFun ( const Double_t *  x,
const Double_t *  par 
)
protected

◆ PeakBgndFun() [2/2]

Double_t PairAnalysisFunction::PeakBgndFun ( const Double_t *  x,
const Double_t *  par 
)
protected

Definition at line 339 of file PairAnalysisFunction.cxx.

References fFuncBackground, fFuncSignal, fNparPeak, and x.

Referenced by CombineFunc().

◆ PeakFunCB() [1/2]

Double_t PairAnalysisFunction::PeakFunCB ( const Double_t *  x,
const Double_t *  par 
)

◆ PeakFunCB() [2/2]

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().

◆ PeakFunExpGaussExp()

Double_t PairAnalysisFunction::PeakFunExpGaussExp ( const Double_t *  x,
const Double_t *  par 
)

Definition at line 177 of file PairAnalysisFunction.cxx.

References x.

◆ PeakFunGaus()

Double_t PairAnalysisFunction::PeakFunGaus ( const Double_t *  x,
const Double_t *  par 
)

Definition at line 130 of file PairAnalysisSignalFunc.cxx.

References x.

◆ PeakFunGauss()

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().

◆ PeakFunMC() [1/2]

Double_t PairAnalysisFunction::PeakFunMC ( const Double_t *  x,
const Double_t *  par 
)

◆ PeakFunMC() [2/2]

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().

◆ PeakFunPowGaussPow()

Double_t PairAnalysisFunction::PeakFunPowGaussPow ( const Double_t *  x,
const Double_t *  par 
)

Definition at line 148 of file PairAnalysisFunction.cxx.

References x.

◆ Print()

void PairAnalysisFunction::Print ( Option_t *  option = "") const
virtual

Reimplemented in PairAnalysisSignalExt, and PairAnalysisSignalFit.

Definition at line 264 of file PairAnalysisSignalFunc.cxx.

References fChi2Dof, fDof, fFitMax, and fFitMin.

◆ SetDefault()

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.

◆ SetDefaults() [1/2]

void PairAnalysisFunction::SetDefaults ( Int_t  type)

◆ SetDefaults() [2/2]

void PairAnalysisFunction::SetDefaults ( Int_t  type)

Definition at line 254 of file PairAnalysisFunction.cxx.

References fFuncBackground, fFuncSigBack, and fFuncSignal.

◆ SetFitOption() [1/2]

void PairAnalysisFunction::SetFitOption ( const char *  opt)
inline

Definition at line 32 of file PairAnalysisSignalFunc.h.

References fFitOpt.

◆ SetFitOption() [2/2]

void PairAnalysisFunction::SetFitOption ( const char *  opt)
inline

Definition at line 46 of file PairAnalysisFunction.h.

References fFitOpt.

◆ SetFitRange()

void PairAnalysisFunction::SetFitRange ( Double_t  min,
Double_t  max 
)
inline

Definition at line 41 of file PairAnalysisFunction.h.

References fFitMax, fFitMin, max(), and min().

◆ SetFunction()

void PairAnalysisFunction::SetFunction ( TF1 *const  combined,
TF1 *const  sig = 0,
TF1 *const  back = 0,
Int_t  parM = 1,
Int_t  parMres = 2 
)

◆ SetFunctions()

void PairAnalysisFunction::SetFunctions ( TF1 *const  combined,
TF1 *const  sig = 0,
TF1 *const  back = 0,
Int_t  parM = 1,
Int_t  parMres = 2 
)

◆ SetMCSignalShape()

void PairAnalysisFunction::SetMCSignalShape ( TH1F *  hist)
inline

Definition at line 52 of file PairAnalysisFunction.h.

References fgHistSimPM.

◆ SetParticleOfInterest()

void PairAnalysisFunction::SetParticleOfInterest ( Int_t  pdgcode)
inline

Definition at line 37 of file PairAnalysisFunction.h.

References fPOI, and fPOIpdg.

◆ SetUseIntegral() [1/2]

void PairAnalysisFunction::SetUseIntegral ( Bool_t  flag = kTRUE)
inline

Definition at line 31 of file PairAnalysisSignalFunc.h.

References fUseIntegral.

◆ SetUseIntegral() [2/2]

void PairAnalysisFunction::SetUseIntegral ( Bool_t  flag = kTRUE)
inline

Definition at line 45 of file PairAnalysisFunction.h.

References fUseIntegral.

Member Data Documentation

◆ fChi2Dof

Double_t PairAnalysisFunction::fChi2Dof = 0.
protected

Definition at line 121 of file PairAnalysisFunction.h.

Referenced by GetChi2Dof(), PairAnalysisSignalFit::Print(), and Print().

◆ fDof

Int_t PairAnalysisFunction::fDof = 0
protected

Definition at line 120 of file PairAnalysisFunction.h.

Referenced by GetDof(), PairAnalysisSignalFit::Print(), and Print().

◆ fFitMax

◆ fFitMin

◆ fFitOpt

TString PairAnalysisFunction::fFitOpt = "SMNQE"
protected

◆ fFuncBackground

◆ fFuncSigBack

◆ fFuncSignal

TF1 * PairAnalysisFunction::fFuncSignal = NULL
protected

◆ fgHistSimPM

TH1F* PairAnalysisFunction::fgHistSimPM
staticprotected

Definition at line 96 of file PairAnalysisFunction.h.

Referenced by PeakFunMC(), and SetMCSignalShape().

◆ fNparBgnd

Int_t PairAnalysisFunction::fNparBgnd = 0
protected

Definition at line 124 of file PairAnalysisFunction.h.

Referenced by CombineFunc().

◆ fNparPeak

Int_t PairAnalysisFunction::fNparPeak = 0
protected

Definition at line 123 of file PairAnalysisFunction.h.

Referenced by CombineFunc(), and PeakBgndFun().

◆ fParMass

Int_t PairAnalysisFunction::fParMass
protected

◆ fParMassWidth

Int_t PairAnalysisFunction::fParMassWidth
protected

◆ fPOI

TParticlePDG* PairAnalysisFunction::fPOI = NULL
protected

◆ fPOIpdg

Int_t PairAnalysisFunction::fPOIpdg = 443
protected

◆ fUseIntegral

Bool_t PairAnalysisFunction::fUseIntegral
protected
Initial value:
=
kFALSE

Definition at line 117 of file PairAnalysisFunction.h.

Referenced by PairAnalysisSignalFit::ProcessFit(), and SetUseIntegral().


The documentation for this class was generated from the following files: