AliPhysics  71e3bc7 (71e3bc7)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliHFInvMassFitter Class Reference

AliHFInvMassFitter class for the fit of invariant mass distribution of charm hadrons. More...

#include <AliHFInvMassFitter.h>

Inheritance diagram for AliHFInvMassFitter:

Public Types

enum  ETypeOfBkg {
  kExpo =0, kLin =1, kPol2 =2, kNoBk =3,
  kPow =4, kPowEx =5
}
 
enum  ETypeOfSgn { kGaus =0, k2Gaus =1 }
 

Public Member Functions

 AliHFInvMassFitter ()
 
 AliHFInvMassFitter (const TH1F *histoToFit, Double_t minvalue, Double_t maxvalue, Int_t fittypeb=kExpo, Int_t fittypes=kGaus)
 
 ~AliHFInvMassFitter ()
 
void SetRangeFit (Double_t minvalue, Double_t maxvalue)
 
void SetUseLikelihoodFit ()
 
void SetUseLikelihoodWithWeightsFit ()
 
void SetUseChi2Fit ()
 
void SetFitOption (TString opt)
 
void SetParticlePdgMass (Double_t mass)
 
Double_t GetParticlePdgMass ()
 
void SetPolDegreeForBackgroundFit (Int_t deg)
 
void SetInitialGaussianMean (Double_t mean)
 
void SetInitialGaussianSigma (Double_t sigma)
 
void SetFixGaussianMean (Double_t mean)
 
void SetFixGaussianSigma (Double_t sigma)
 
void SetFixSignalYield (Double_t yield)
 
void SetNSigma4SideBands (Double_t ns=4.)
 
TH1F * SetTemplateReflections (const TH1 *h, TString opt, Double_t minRange, Double_t maxRange)
 
void SetInitialReflOverS (Double_t rovers)
 
void SetFixReflOverS (Double_t rovers)
 
void SetSmoothReflectionTemplate (Bool_t opt)
 
void IncludeSecondGausPeak (Double_t mass, Bool_t fixm, Double_t width, Bool_t fixw)
 
Double_t GetRawYield () const
 
Double_t GetRawYieldError () const
 
Double_t GetMean () const
 
Double_t GetMeanUncertainty () const
 
Double_t GetSigma () const
 
Double_t GetSigmaUncertainty () const
 
Double_t GetReflOverSig () const
 
Double_t GetReflOverSigUncertainty () const
 
TF1 * GetBackgroundFullRangeFunc ()
 
TF1 * GetBackgroundRecalcFunc ()
 
TF1 * GetMassFunc ()
 
Double_t GetChiSquare () const
 
Double_t GetReducedChiSquare () const
 
Double_t GetFitProbability () const
 
TH1F * GetHistoClone () const
 
Double_t GetRawYieldBinCounting (Double_t &errRyBC, Double_t nSigma=3., Int_t option=0, Int_t pdgCode=0) const
 
Double_t GetRawYieldBinCounting (Double_t &errRyBC, Double_t minMass, Double_t maxMass, Int_t option=0) const
 
Int_t MassFitter (Bool_t draw=kTRUE)
 
Double_t FitFunction4Sgn (Double_t *x, Double_t *par)
 
Double_t FitFunction4Bkg (Double_t *x, Double_t *par)
 
Double_t FitFunction4Refl (Double_t *x, Double_t *par)
 
Double_t FitFunction4BkgAndRefl (Double_t *x, Double_t *par)
 
Double_t FitFunction4SecPeak (Double_t *x, Double_t *par)
 
Double_t FitFunction4Mass (Double_t *x, Double_t *par)
 
virtual void Signal (Double_t nOfSigma, Double_t &signal, Double_t &errsignal) const
 
virtual void Signal (Double_t min, Double_t max, Double_t &signal, Double_t &errsignal) const
 
void Background (Double_t nOfSigma, Double_t &background, Double_t &errbackground) const
 
void Background (Double_t min, Double_t max, Double_t &background, Double_t &errbackground) const
 
void DrawHere (TVirtualPad *c, Double_t nsigma=3, Int_t writeFitInfo=1)
 
void Significance (Double_t nOfSigma, Double_t &significance, Double_t &errsignificance) const
 
void Significance (Double_t min, Double_t max, Double_t &significance, Double_t &errsignificance) const
 
TH1F * GetResidualsAndPulls (TH1 *hPulls=0x0, TH1 *hResidualTrend=0x0, TH1 *hPullsTrend=0x0, Double_t minrange=0, Double_t maxrange=-1)
 
void PrintFunctions ()
 

Private Member Functions

 AliHFInvMassFitter (const AliHFInvMassFitter &source)
 
AliHFInvMassFitteroperator= (const AliHFInvMassFitter &source)
 
void SetNumberOfParams ()
 
Double_t CheckForSignal (Double_t mean, Double_t sigma)
 
TF1 * CreateBackgroundFitFunction (TString fname, Double_t integral)
 
TF1 * CreateSignalFitFunction (TString fname, Double_t integral)
 
TF1 * CreateSecondPeakFunction (TString fname, Double_t integral)
 
TF1 * CreateReflectionFunction (TString fname)
 
TF1 * CreateBackgroundPlusReflectionFunction (TString fname)
 
TF1 * CreateTotalFitFunction (TString fname)
 
Bool_t PrepareHighPolFit (TF1 *fback)
 
Double_t BackFitFuncPolHelper (Double_t *x, Double_t *par)
 
void DrawFit ()
 

Private Attributes

TH1F * fHistoInvMass
 
Double_t fMinMass
 histogram to fit More...
 
Double_t fMaxMass
 lower mass limit More...
 
Int_t fTypeOfFit4Bkg
 upper mass limit More...
 
Int_t fPolDegreeBkg
 background fit func More...
 
Int_t fCurPolDegreeBkg
 degree of polynomial expansion for back fit (option 6 for back) More...
 
Double_t fMassParticle
 help variable More...
 
Int_t fTypeOfFit4Sgn
 pdg value of particle mass More...
 
Double_t fMass
 signal fit func More...
 
Double_t fMassErr
 signal gaussian mean value More...
 
Double_t fSigmaSgn
 unc on signal gaussian mean value More...
 
Double_t fSigmaSgnErr
 signal gaussian sigma More...
 
Bool_t fFixedMean
 unc on signal gaussian sigma More...
 
Bool_t fFixedSigma
 switch for fix mean of gaussian More...
 
Double_t fFixedRawYield
 switch for fix Sigma of gaussian More...
 
Int_t fNParsSig
 initialization for wa yield More...
 
Int_t fNParsBkg
 fit parameters in signal fit function More...
 
Bool_t fOnlySideBands
 fit parameters in background fit function More...
 
Double_t fNSigma4SideBands
 kTRUE = only side bands considered More...
 
TString fFitOption
 number of sigmas to veto the signal peak More...
 
Double_t fRawYield
 L, LW or Chi2. More...
 
Double_t fRawYieldErr
 signal gaussian integral More...
 
TF1 * fSigFunc
 err on signal gaussian integral More...
 
TF1 * fBkgFuncSb
 Signal fit function. More...
 
TF1 * fBkgFunc
 background fit function (1st step, side bands only) More...
 
TF1 * fBkgFuncRefit
 background fit function (1st step, extended in peak region) More...
 
Bool_t fReflections
 background fit function (2nd step) More...
 
Int_t fNParsRfl
 flag use/not use reflections More...
 
Double_t fRflOverSig
 fit parameters in reflection fit function More...
 
Bool_t fFixRflOverSig
 reflection/signal More...
 
TH1F * fHistoTemplRfl
 switch for fix refl/signal More...
 
Bool_t fSmoothRfl
 histogram with reflection template More...
 
Double_t fRawYieldHelp
 switch for smoothing of reflection template More...
 
TF1 * fRflFunc
 internal variable for fit with reflections More...
 
TF1 * fBkRFunc
 fit function for reflections More...
 
Bool_t fSecondPeak
 fit function for reflections More...
 
Int_t fNParsSec
 switch off/on second peak (for D+->KKpi in Ds) More...
 
Double_t fSecMass
 fit parameters in 2nd peak fit function More...
 
Double_t fSecWidth
 position of the 2nd peak More...
 
Bool_t fFixSecMass
 width of the 2nd peak More...
 
Bool_t fFixSecWidth
 flag to fix the position of the 2nd peak More...
 
TF1 * fSecFunc
 flag to fix the width of the 2nd peak More...
 
TF1 * fTotFunc
 fit function for second peak More...
 

Detailed Description

AliHFInvMassFitter class for the fit of invariant mass distribution of charm hadrons.

Author
Author: F.Prino, A. Rossi, C. Bianchin

Definition at line 24 of file AliHFInvMassFitter.h.

Member Enumeration Documentation

Enumerator
kExpo 
kLin 
kPol2 
kNoBk 
kPow 
kPowEx 

Definition at line 27 of file AliHFInvMassFitter.h.

Enumerator
kGaus 
k2Gaus 

Definition at line 28 of file AliHFInvMassFitter.h.

Constructor & Destructor Documentation

AliHFInvMassFitter::AliHFInvMassFitter ( )

Implemenatation od AliHFInvMassFitter class for the fit of invariant mass distribution of charm hadron candidates reconstructed from their hadronic decays

Author: F. Prino -> Simplified version of AliHFMassFitter class developed by C.Bianchin -> With extra features:

  • Polynomials with degree >2 as background fit function (as implemented by A. Rossi in AliHFMassFitterVAR
  • Possibility to incude a Gaussian function in the background (for D+ -> KKpi decays in the D_s background)

default constructor

Definition at line 49 of file AliHFInvMassFitter.cxx.

AliHFInvMassFitter::AliHFInvMassFitter ( const TH1F *  histoToFit,
Double_t  minvalue,
Double_t  maxvalue,
Int_t  fittypeb = kExpo,
Int_t  fittypes = kGaus 
)

standard constructor

Definition at line 99 of file AliHFInvMassFitter.cxx.

AliHFInvMassFitter::~AliHFInvMassFitter ( )

destructor

Definition at line 151 of file AliHFInvMassFitter.cxx.

AliHFInvMassFitter::AliHFInvMassFitter ( const AliHFInvMassFitter source)
private

Member Function Documentation

Double_t AliHFInvMassFitter::BackFitFuncPolHelper ( Double_t x,
Double_t par 
)
private

Helper function for polynomials with degree>2

Definition at line 917 of file AliHFInvMassFitter.cxx.

Referenced by PrepareHighPolFit().

void AliHFInvMassFitter::Background ( Double_t  nOfSigma,
Double_t background,
Double_t errbackground 
) const

Return background integral in mean +- n sigma

Definition at line 786 of file AliHFInvMassFitter.cxx.

Referenced by AliHFInvMassMultiTrialFit::DoMultiTrials(), DrawHere(), ProjectCombinHFAndFit(), and Significance().

void AliHFInvMassFitter::Background ( Double_t  min,
Double_t  max,
Double_t background,
Double_t errbackground 
) const

Return background integral in a range

Definition at line 797 of file AliHFInvMassFitter.cxx.

Double_t AliHFInvMassFitter::CheckForSignal ( Double_t  mean,
Double_t  sigma 
)
private

Checks if there are signal counts above the background in the invariant mass region of the peak

Definition at line 393 of file AliHFInvMassFitter.cxx.

Referenced by MassFitter().

TF1 * AliHFInvMassFitter::CreateBackgroundFitFunction ( TString  fname,
Double_t  integral 
)
private

Creates the background fit fucntion

Definition at line 418 of file AliHFInvMassFitter.cxx.

Referenced by MassFitter().

TF1 * AliHFInvMassFitter::CreateBackgroundPlusReflectionFunction ( TString  fname)
private

Creates the function with sum of background and reflections

Definition at line 492 of file AliHFInvMassFitter.cxx.

Referenced by MassFitter().

TF1 * AliHFInvMassFitter::CreateReflectionFunction ( TString  fname)
private

Creates a function for reflections contribution in the D0->Kpi inv. mass distribution

Definition at line 481 of file AliHFInvMassFitter.cxx.

Referenced by MassFitter().

TF1 * AliHFInvMassFitter::CreateSecondPeakFunction ( TString  fname,
Double_t  integral 
)
private

Creates a function for a gaussian peak in the background fit function Can be used e.g. to include the D+->KKpi peak in the D_s inv. mass fit

Definition at line 467 of file AliHFInvMassFitter.cxx.

Referenced by MassFitter().

TF1 * AliHFInvMassFitter::CreateSignalFitFunction ( TString  fname,
Double_t  integral 
)
private

Creates the fit function for the signal peak

Definition at line 510 of file AliHFInvMassFitter.cxx.

Referenced by MassFitter().

TF1 * AliHFInvMassFitter::CreateTotalFitFunction ( TString  fname)
private

Creates the total fit fucntion (signal+background+possible second peak)

Definition at line 543 of file AliHFInvMassFitter.cxx.

Referenced by MassFitter().

void AliHFInvMassFitter::DrawFit ( )
private

Steering method to draw the fit output

Definition at line 335 of file AliHFInvMassFitter.cxx.

Referenced by MassFitter().

void AliHFInvMassFitter::DrawHere ( TVirtualPad *  c,
Double_t  nsigma = 3,
Int_t  writeFitInfo = 1 
)

Core method to draw the fit output

Definition at line 343 of file AliHFInvMassFitter.cxx.

Referenced by AliHFInvMassMultiTrialFit::DoMultiTrials(), DrawFit(), and ProjectCombinHFAndFit().

Double_t AliHFInvMassFitter::FitFunction4Bkg ( Double_t x,
Double_t par 
)

Fit function for the background

Definition at line 582 of file AliHFInvMassFitter.cxx.

Referenced by CreateBackgroundFitFunction(), FitFunction4BkgAndRefl(), and FitFunction4Mass().

Double_t AliHFInvMassFitter::FitFunction4BkgAndRefl ( Double_t x,
Double_t par 
)

Fit fucntion with the sum of background and reflections

Definition at line 729 of file AliHFInvMassFitter.cxx.

Referenced by CreateBackgroundPlusReflectionFunction().

Double_t AliHFInvMassFitter::FitFunction4Mass ( Double_t x,
Double_t par 
)

Total fit function (signal+background+possible second peak)

Definition at line 751 of file AliHFInvMassFitter.cxx.

Referenced by CreateTotalFitFunction().

Double_t AliHFInvMassFitter::FitFunction4Refl ( Double_t x,
Double_t par 
)

Fit function for reflections: D0->Kpi decays with swapped mass assignment to pion and kaon decay tracks

Definition at line 712 of file AliHFInvMassFitter.cxx.

Referenced by CreateReflectionFunction(), FitFunction4BkgAndRefl(), and FitFunction4Mass().

Double_t AliHFInvMassFitter::FitFunction4SecPeak ( Double_t x,
Double_t par 
)

Fit function for a second gaussian peak To be used, e.g., for D+->KKpi in the Ds mass spectrum

Definition at line 738 of file AliHFInvMassFitter.cxx.

Referenced by CreateSecondPeakFunction(), and FitFunction4Mass().

Double_t AliHFInvMassFitter::FitFunction4Sgn ( Double_t x,
Double_t par 
)

Fit function for the signal

Definition at line 678 of file AliHFInvMassFitter.cxx.

Referenced by CreateSignalFitFunction(), and FitFunction4Mass().

TF1* AliHFInvMassFitter::GetBackgroundFullRangeFunc ( )
inline

Definition at line 90 of file AliHFInvMassFitter.h.

Referenced by AliHFInvMassMultiTrialFit::DoMultiTrials().

TF1* AliHFInvMassFitter::GetBackgroundRecalcFunc ( )
inline

Definition at line 91 of file AliHFInvMassFitter.h.

Referenced by ProjectCombinHFAndFit().

Double_t AliHFInvMassFitter::GetChiSquare ( ) const
inline

Definition at line 93 of file AliHFInvMassFitter.h.

Double_t AliHFInvMassFitter::GetFitProbability ( ) const
inline

Definition at line 101 of file AliHFInvMassFitter.h.

TH1F* AliHFInvMassFitter::GetHistoClone ( ) const
inline

Definition at line 105 of file AliHFInvMassFitter.h.

Referenced by ConfigureFitter().

TF1* AliHFInvMassFitter::GetMassFunc ( )
inline

Definition at line 92 of file AliHFInvMassFitter.h.

Referenced by AliHFVnVsMassFitter::MassPrefit(), and ProjectCombinHFAndFit().

Double_t AliHFInvMassFitter::GetMean ( ) const
inline
Double_t AliHFInvMassFitter::GetMeanUncertainty ( ) const
inline

Definition at line 79 of file AliHFInvMassFitter.h.

Referenced by AliHFInvMassMultiTrialFit::DoMultiTrials(), and WriteFitInfo().

Double_t AliHFInvMassFitter::GetParticlePdgMass ( )
inline

Definition at line 42 of file AliHFInvMassFitter.h.

Double_t AliHFInvMassFitter::GetRawYield ( ) const
inline

Definition at line 76 of file AliHFInvMassFitter.h.

Referenced by AliHFInvMassMultiTrialFit::DoMultiTrials().

Double_t AliHFInvMassFitter::GetRawYieldBinCounting ( Double_t errRyBC,
Double_t  nSigma = 3.,
Int_t  option = 0,
Int_t  pdgCode = 0 
) const

Method to compute the signal using inv. mass histo bin counting -> interface method to compute yield in nsigma range around peak pdgCode: if==411,421,413,413 or 4122: range defined based on PDG mass

Definition at line 1035 of file AliHFInvMassFitter.cxx.

Referenced by ProjectCombinHFAndFit().

Double_t AliHFInvMassFitter::GetRawYieldBinCounting ( Double_t errRyBC,
Double_t  minMass,
Double_t  maxMass,
Int_t  option = 0 
) const

Method to compute the signal using inv. mass histo bin counting after background subtraction from background fit function option=0: background fit function from 1st fit step (only side bands) option=1: background fit function from 2nd fit step (S+B)

Definition at line 1063 of file AliHFInvMassFitter.cxx.

Double_t AliHFInvMassFitter::GetRawYieldError ( ) const
inline

Definition at line 77 of file AliHFInvMassFitter.h.

Referenced by AliHFInvMassMultiTrialFit::DoMultiTrials().

Double_t AliHFInvMassFitter::GetReducedChiSquare ( ) const
inline

Definition at line 97 of file AliHFInvMassFitter.h.

Referenced by AliHFInvMassMultiTrialFit::DoMultiTrials().

Double_t AliHFInvMassFitter::GetReflOverSig ( ) const
inline

Definition at line 82 of file AliHFInvMassFitter.h.

Referenced by WriteFitInfo().

Double_t AliHFInvMassFitter::GetReflOverSigUncertainty ( ) const
inline

Definition at line 86 of file AliHFInvMassFitter.h.

Referenced by WriteFitInfo().

TH1F * AliHFInvMassFitter::GetResidualsAndPulls ( TH1 hPulls = 0x0,
TH1 hResidualTrend = 0x0,
TH1 hPullsTrend = 0x0,
Double_t  minrange = 0,
Double_t  maxrange = -1 
)

fill and return the residual and pull histos

Definition at line 1099 of file AliHFInvMassFitter.cxx.

Referenced by ProjectCombinHFAndFit().

Double_t AliHFInvMassFitter::GetSigma ( ) const
inline
Double_t AliHFInvMassFitter::GetSigmaUncertainty ( ) const
inline

Definition at line 81 of file AliHFInvMassFitter.h.

Referenced by AliHFInvMassMultiTrialFit::DoMultiTrials(), and WriteFitInfo().

void AliHFInvMassFitter::IncludeSecondGausPeak ( Double_t  mass,
Bool_t  fixm,
Double_t  width,
Bool_t  fixw 
)
inline
Int_t AliHFInvMassFitter::MassFitter ( Bool_t  draw = kTRUE)

Main function to fit the invariant mass distribution returns 0 if the fit fails returns 1 if the fit succeeds returns 2 if there is no signal and the fit is performed with only background

Definition at line 219 of file AliHFInvMassFitter.cxx.

Referenced by AliHFInvMassMultiTrialFit::DoMultiTrials(), AliHFVnVsMassFitter::MassPrefit(), and ProjectCombinHFAndFit().

AliHFInvMassFitter& AliHFInvMassFitter::operator= ( const AliHFInvMassFitter source)
private
Bool_t AliHFInvMassFitter::PrepareHighPolFit ( TF1 *  fback)
private

Perform intermediate fit steps up to fPolDegreeBkg-1 in case of fit with a polynomial with degree > 2 (fTypeOfFit4Bkg=6)

Definition at line 866 of file AliHFInvMassFitter.cxx.

Referenced by MassFitter().

void AliHFInvMassFitter::PrintFunctions ( )

dump the function parameters

Definition at line 1179 of file AliHFInvMassFitter.cxx.

void AliHFInvMassFitter::SetFitOption ( TString  opt)
inline

Definition at line 40 of file AliHFInvMassFitter.h.

Referenced by ConfigureFitter().

void AliHFInvMassFitter::SetFixGaussianMean ( Double_t  mean)
inline
void AliHFInvMassFitter::SetFixGaussianSigma ( Double_t  sigma)
inline
void AliHFInvMassFitter::SetFixReflOverS ( Double_t  rovers)
inline
void AliHFInvMassFitter::SetFixSignalYield ( Double_t  yield)
inline

Definition at line 58 of file AliHFInvMassFitter.h.

void AliHFInvMassFitter::SetInitialGaussianMean ( Double_t  mean)
inline
void AliHFInvMassFitter::SetInitialGaussianSigma ( Double_t  sigma)
inline
void AliHFInvMassFitter::SetInitialReflOverS ( Double_t  rovers)
inline

Definition at line 65 of file AliHFInvMassFitter.h.

Referenced by AliHFVnVsMassFitter::MassPrefit(), and SetFixReflOverS().

void AliHFInvMassFitter::SetNSigma4SideBands ( Double_t  ns = 4.)
inline

Definition at line 61 of file AliHFInvMassFitter.h.

void AliHFInvMassFitter::SetNumberOfParams ( )
private
void AliHFInvMassFitter::SetParticlePdgMass ( Double_t  mass)
inline

Definition at line 41 of file AliHFInvMassFitter.h.

void AliHFInvMassFitter::SetPolDegreeForBackgroundFit ( Int_t  deg)
inline
void AliHFInvMassFitter::SetRangeFit ( Double_t  minvalue,
Double_t  maxvalue 
)
inline

Definition at line 33 of file AliHFInvMassFitter.h.

void AliHFInvMassFitter::SetSmoothReflectionTemplate ( Bool_t  opt)
inline

Definition at line 70 of file AliHFInvMassFitter.h.

TH1F * AliHFInvMassFitter::SetTemplateReflections ( const TH1 h,
TString  opt,
Double_t  minRange,
Double_t  maxRange 
)

Method to create the reflection invariant mass distributions from MC templates option could be: "template" use MC histograms "1gaus" ot "singlegaus" single gaussian function fit to MC templates "2gaus" ot "doublegaus" double gaussian function fit to MC templates "pol3" 3rd order polynomial fit to MC templates "pol6" 6th order polynomial fit to MC templates

Definition at line 933 of file AliHFInvMassFitter.cxx.

Referenced by ConfigureFitter(), AliHFInvMassMultiTrialFit::DoMultiTrials(), and AliHFVnVsMassFitter::MassPrefit().

void AliHFInvMassFitter::SetUseChi2Fit ( )
inline
void AliHFInvMassFitter::SetUseLikelihoodFit ( )
inline

Definition at line 37 of file AliHFInvMassFitter.h.

Referenced by AliHFVnVsMassFitter::MassPrefit().

void AliHFInvMassFitter::SetUseLikelihoodWithWeightsFit ( )
inline

Definition at line 38 of file AliHFInvMassFitter.h.

void AliHFInvMassFitter::Signal ( Double_t  nOfSigma,
Double_t signal,
Double_t errsignal 
) const
virtual

Return signal integral in mean +- n sigma

Definition at line 765 of file AliHFInvMassFitter.cxx.

Referenced by WriteFitInfo().

void AliHFInvMassFitter::Signal ( Double_t  min,
Double_t  max,
Double_t signal,
Double_t errsignal 
) const
virtual

Return signal integral in a range

Definition at line 776 of file AliHFInvMassFitter.cxx.

void AliHFInvMassFitter::Significance ( Double_t  nOfSigma,
Double_t significance,
Double_t errsignificance 
) const

Return significance in mean +- n sigma

Definition at line 835 of file AliHFInvMassFitter.cxx.

Referenced by AliHFInvMassMultiTrialFit::DoMultiTrials(), and DrawHere().

void AliHFInvMassFitter::Significance ( Double_t  min,
Double_t  max,
Double_t significance,
Double_t errsignificance 
) const

Return significance integral in a range

Definition at line 848 of file AliHFInvMassFitter.cxx.

Member Data Documentation

TF1* AliHFInvMassFitter::fBkgFunc
private
TF1* AliHFInvMassFitter::fBkgFuncRefit
private

background fit function (1st step, extended in peak region)

Definition at line 170 of file AliHFInvMassFitter.h.

Referenced by Background(), DrawHere(), GetBackgroundRecalcFunc(), GetRawYieldBinCounting(), MassFitter(), PrintFunctions(), and ~AliHFInvMassFitter().

TF1* AliHFInvMassFitter::fBkgFuncSb
private

Signal fit function.

Definition at line 168 of file AliHFInvMassFitter.h.

Referenced by MassFitter(), and ~AliHFInvMassFitter().

TF1* AliHFInvMassFitter::fBkRFunc
private

fit function for reflections

Definition at line 179 of file AliHFInvMassFitter.h.

Referenced by DrawHere(), MassFitter(), PrintFunctions(), and ~AliHFInvMassFitter().

Int_t AliHFInvMassFitter::fCurPolDegreeBkg
private

degree of polynomial expansion for back fit (option 6 for back)

Definition at line 150 of file AliHFInvMassFitter.h.

Referenced by BackFitFuncPolHelper(), and PrepareHighPolFit().

TString AliHFInvMassFitter::fFitOption
private

number of sigmas to veto the signal peak

Definition at line 164 of file AliHFInvMassFitter.h.

Referenced by MassFitter(), SetFitOption(), SetUseChi2Fit(), SetUseLikelihoodFit(), and SetUseLikelihoodWithWeightsFit().

Bool_t AliHFInvMassFitter::fFixedMean
private

unc on signal gaussian sigma

Definition at line 157 of file AliHFInvMassFitter.h.

Referenced by CreateSignalFitFunction(), and SetFixGaussianMean().

Double_t AliHFInvMassFitter::fFixedRawYield
private

switch for fix Sigma of gaussian

Definition at line 159 of file AliHFInvMassFitter.h.

Referenced by CreateSignalFitFunction(), and SetFixSignalYield().

Bool_t AliHFInvMassFitter::fFixedSigma
private

switch for fix mean of gaussian

Definition at line 158 of file AliHFInvMassFitter.h.

Referenced by CreateSignalFitFunction(), and SetFixGaussianSigma().

Bool_t AliHFInvMassFitter::fFixRflOverSig
private

reflection/signal

Definition at line 174 of file AliHFInvMassFitter.h.

Referenced by CreateReflectionFunction(), and SetFixReflOverS().

Bool_t AliHFInvMassFitter::fFixSecMass
private

width of the 2nd peak

Definition at line 184 of file AliHFInvMassFitter.h.

Referenced by CreateSecondPeakFunction(), and IncludeSecondGausPeak().

Bool_t AliHFInvMassFitter::fFixSecWidth
private

flag to fix the position of the 2nd peak

Definition at line 185 of file AliHFInvMassFitter.h.

Referenced by CreateSecondPeakFunction(), and IncludeSecondGausPeak().

TH1F* AliHFInvMassFitter::fHistoTemplRfl
private

switch for fix refl/signal

Definition at line 175 of file AliHFInvMassFitter.h.

Referenced by FitFunction4Refl(), SetTemplateReflections(), and ~AliHFInvMassFitter().

Double_t AliHFInvMassFitter::fMassErr
private

signal gaussian mean value

Definition at line 154 of file AliHFInvMassFitter.h.

Referenced by GetMeanUncertainty(), and MassFitter().

Double_t AliHFInvMassFitter::fMassParticle
private

help variable

Definition at line 151 of file AliHFInvMassFitter.h.

Referenced by BackFitFuncPolHelper(), FitFunction4Bkg(), GetParticlePdgMass(), and SetParticlePdgMass().

Int_t AliHFInvMassFitter::fNParsBkg
private
Int_t AliHFInvMassFitter::fNParsRfl
private

flag use/not use reflections

Definition at line 172 of file AliHFInvMassFitter.h.

Referenced by CreateBackgroundPlusReflectionFunction(), CreateTotalFitFunction(), MassFitter(), and SetNumberOfParams().

Int_t AliHFInvMassFitter::fNParsSec
private

switch off/on second peak (for D+->KKpi in Ds)

Definition at line 181 of file AliHFInvMassFitter.h.

Referenced by CreateTotalFitFunction(), FitFunction4Mass(), MassFitter(), and SetNumberOfParams().

Int_t AliHFInvMassFitter::fNParsSig
private

initialization for wa yield

Definition at line 160 of file AliHFInvMassFitter.h.

Referenced by CreateSignalFitFunction(), CreateTotalFitFunction(), DrawHere(), FitFunction4Mass(), MassFitter(), and SetNumberOfParams().

Double_t AliHFInvMassFitter::fNSigma4SideBands
private

kTRUE = only side bands considered

Definition at line 163 of file AliHFInvMassFitter.h.

Referenced by BackFitFuncPolHelper(), Background(), FitFunction4Bkg(), MassFitter(), and SetNSigma4SideBands().

Bool_t AliHFInvMassFitter::fOnlySideBands
private

fit parameters in background fit function

Definition at line 162 of file AliHFInvMassFitter.h.

Referenced by BackFitFuncPolHelper(), FitFunction4Bkg(), and MassFitter().

Int_t AliHFInvMassFitter::fPolDegreeBkg
private

background fit func

Definition at line 149 of file AliHFInvMassFitter.h.

Referenced by FitFunction4Bkg(), PrepareHighPolFit(), SetNumberOfParams(), and SetPolDegreeForBackgroundFit().

Double_t AliHFInvMassFitter::fRawYield
private

L, LW or Chi2.

Definition at line 165 of file AliHFInvMassFitter.h.

Referenced by DrawHere(), GetRawYield(), MassFitter(), Signal(), and Significance().

Double_t AliHFInvMassFitter::fRawYieldErr
private

signal gaussian integral

Definition at line 166 of file AliHFInvMassFitter.h.

Referenced by DrawHere(), GetRawYieldError(), MassFitter(), Signal(), and Significance().

Double_t AliHFInvMassFitter::fRawYieldHelp
private

switch for smoothing of reflection template

Definition at line 177 of file AliHFInvMassFitter.h.

Referenced by FitFunction4Refl(), FitFunction4Sgn(), and MassFitter().

Bool_t AliHFInvMassFitter::fReflections
private

background fit function (2nd step)

Definition at line 171 of file AliHFInvMassFitter.h.

Referenced by CreateTotalFitFunction(), FitFunction4BkgAndRefl(), FitFunction4Mass(), MassFitter(), SetNumberOfParams(), and SetTemplateReflections().

TF1* AliHFInvMassFitter::fRflFunc
private
Double_t AliHFInvMassFitter::fRflOverSig
private

fit parameters in reflection fit function

Definition at line 173 of file AliHFInvMassFitter.h.

Referenced by CreateReflectionFunction(), and SetInitialReflOverS().

TF1* AliHFInvMassFitter::fSecFunc
private

flag to fix the width of the 2nd peak

Definition at line 186 of file AliHFInvMassFitter.h.

Referenced by CreateTotalFitFunction(), DrawHere(), MassFitter(), PrintFunctions(), and ~AliHFInvMassFitter().

Double_t AliHFInvMassFitter::fSecMass
private

fit parameters in 2nd peak fit function

Definition at line 182 of file AliHFInvMassFitter.h.

Referenced by CreateSecondPeakFunction(), FitFunction4Bkg(), IncludeSecondGausPeak(), and MassFitter().

Bool_t AliHFInvMassFitter::fSecondPeak
private
Double_t AliHFInvMassFitter::fSecWidth
private

position of the 2nd peak

Definition at line 183 of file AliHFInvMassFitter.h.

Referenced by CreateSecondPeakFunction(), FitFunction4Bkg(), IncludeSecondGausPeak(), and MassFitter().

TF1* AliHFInvMassFitter::fSigFunc
private

err on signal gaussian integral

Definition at line 167 of file AliHFInvMassFitter.h.

Referenced by CreateTotalFitFunction(), MassFitter(), Signal(), and ~AliHFInvMassFitter().

Double_t AliHFInvMassFitter::fSigmaSgnErr
private

signal gaussian sigma

Definition at line 156 of file AliHFInvMassFitter.h.

Referenced by GetSigmaUncertainty(), and MassFitter().

Bool_t AliHFInvMassFitter::fSmoothRfl
private

histogram with reflection template

Definition at line 176 of file AliHFInvMassFitter.h.

Referenced by FitFunction4Refl(), and SetSmoothReflectionTemplate().

TF1* AliHFInvMassFitter::fTotFunc
private
Int_t AliHFInvMassFitter::fTypeOfFit4Bkg
private
Int_t AliHFInvMassFitter::fTypeOfFit4Sgn
private

pdg value of particle mass

Definition at line 152 of file AliHFInvMassFitter.h.

Referenced by CreateSignalFitFunction(), FitFunction4Sgn(), and SetNumberOfParams().


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