Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
Hal::CorrFit1DCF Class Reference

#include <CorrFit1DCF.h>

Inheritance diagram for Hal::CorrFit1DCF:
Hal::CorrFitFunc Hal::CorrFit Hal::CorrFit1DCFCumac Hal::CorrFit1DCF_Exp Hal::CorrFit1DCF_Gauss Hal::CorrFit1DCF_Lorentz Hal::CorrFit1DCF_Poly Hal::CorrFit1DCF_Square Hal::CorrFitKisiel Hal::CorrFitMath1DCF

Public Member Functions

 CorrFit1DCF (Int_t parameters=3)
 
virtual Double_t Eval (Double_t q) const
 
void SetFittingMask (const CorrFitMask &map)
 
void SetRLimits (Double_t min, Double_t max)
 
void SetLambdaLimits (Double_t min, Double_t max)
 
Double_t GetRadius () const
 
Double_t GetRadiusError () const
 
Double_t GetLambda () const
 
Double_t GetLambdaError () const
 
Int_t RadiusID () const
 
Int_t LambdaID () const
 
- Public Member Functions inherited from Hal::CorrFitFunc
 CorrFitFunc (Int_t nparams=1, Int_t dim=1)
 
void SetTolerance (Double_t tol)
 
void SetMaxIteration (Int_t max)
 
void SetRange (Double_t min, Double_t max)
 
void TraceFitting ()
 
void SetMinimizerConf (const MinimizerStepConf &conf)
 
void SetMinimizerConf (TString xmlFile)
 
void MakeDummyXMLConfig (TString xmlFile)
 
Int_t GetFreeParamsNo () const
 
Double_t GetChiSquare (Option_t *opt="fitted") const
 
Double_t GetChiNDF (Option_t *opt="fitted") const
 
Double_t GetRangeMin (Int_t flag=0) const
 
Double_t GetRangeMax (Int_t flag=0) const
 
ChiSqMap2DGetChiSquareMap (Int_t par1, Int_t par1_steps, Int_t par2, Int_t par2_steps, Bool_t scale=kTRUE, EMinFunc=kChi2) const
 
ChiSqMap2DGetChiSquareMap (Int_t par1, Int_t par1_steps, Double_t par1_min, Double_t par1_max, Int_t par2, Int_t par2_steps, Double_t par2_min, Double_t par2_max, Bool_t scale=kTRUE, EMinFunc=kChi2) const
 
TF1 * GetFittedFunction () const
 
CorrFitHDFuncGetHD () const
 
virtual void PreFit (TObject *histo, Double_t bins=1)
 
Double_t GetNorm () const
 
Int_t NormID () const
 
Double_t GetNormError () const
 
void SetNormLimits (Double_t min, Double_t max)
 
virtual void Draw (Option_t *option="")
 
virtual void Repaint ()
 
Hal::CorrFitGUIStartGui (Int_t prec=-1)
 
CorrFitPainterGetPainter () const
 
- Public Member Functions inherited from Hal::CorrFit
 CorrFit (Int_t parameters_no=2)
 
void SetParLimits (Int_t par, Double_t min, Double_t max)
 
void FixParameter (Int_t par, Double_t val)
 
void SetParameterName (Int_t par, TString name)
 
void SetLineColor (Color_t color)
 
void SetLineStyle (Style_t style)
 
void SetLineWidth (Width_t width)
 
void SetThreshold (Double_t thres)
 
void PrintFitResults () const
 
Bool_t IsParFixed (Int_t par) const
 
Bool_t IsParDiscrete (Int_t par) const
 
Double_t GetParMin (Int_t par) const
 
Double_t GetParMax (Int_t par) const
 
Double_t GetParError (Int_t par) const
 
Double_t GetParameter (Int_t par) const
 
const FitParamGetParamConf (Int_t par) const
 
Double_t GetNDF () const
 
Int_t GetParametersNo () const
 
Int_t GetParameterIndex (TString name) const
 
TString GetParameterName (Int_t no) const
 
virtual void SetMinimizer (EMinAlgo alg)
 
void SetMinimizedFunc (EMinFunc f)
 
void SetCalculationOption (ECalcOption f)
 
CorrFitPainterGetPainter () const
 

Protected Member Functions

virtual void MakePainter (TString opt)
 
CorrFitMask1DGetMask () const
 
virtual void CalculateNumErrors (TH1 *)
 
virtual Double_t GetNumericalError (Int_t) const
 
void PrepareRaw ()
 
void EstimateActiveBins ()
 
void RecalculateSmoothFunction () const
 
void SetErrors (TH1 *num, const TH1 *den) const
 
double GetChiTF (const double *par) const
 
double GetChiTFD (const double *par) const
 
double GetLogTFD (const double *par) const
 
virtual TF1 * GetFunctionForDrawing () const
 
Double_t GetFunDrawable (Double_t *x, Double_t *params) const
 
Double_t EvalCF (const Double_t *x, const Double_t *params) const
 
Double_t EvalCFNormalized (const Double_t *x, const Double_t *params) const
 
virtual Double_t CalculateCF (const Double_t *, const Double_t *) const
 
virtual void Fit (TObject *histo)
 
- Protected Member Functions inherited from Hal::CorrFitFunc
virtual void RecalculateFunction () const
 
virtual void PrepareHalMinimizer () const
 
virtual void PrepareRootMinimizer (ROOT::Math::Minimizer *minizer) const
 
void SetupFunction (TF1 *f) const
 
void NumericalMinimization ()
 
void NumericalPreMinimization (Double_t bins)
 
void DummyNumericalFunction ()
 
void ParametersChanged () const
 
virtual void FitDummy (TObject *histo)
 
virtual void Check ()
 
virtual void Prepare ()
 
void FitStep (Int_t)
 
double FunctorChiTFD (const double *params)
 
double FunctorChiTF (const double *params)
 
double FunctorLogTFD (const double *params)
 
void CalcError (const Double_t Num, const Double_t NumErr, const Double_t Den, const Double_t DenErr, Double_t &cf, Double_t &cfe) const
 
- Protected Member Functions inherited from Hal::CorrFit
std::vector< TString > AlgoToOptions (EMinAlgo algo) const
 
void CheckOrder ()
 
void ChangeParametersNo ()
 
Color_t GetLineColor () const
 
Style_t GetLineStyle () const
 
Width_t GetLineWidth () const
 
TF1 * GetTF1 (Int_t no) const
 
std::vector< std::pair< TF1 *, TVirtualPad * > > GetDrawFunctions () const
 
void OverwriteParam (Int_t par, Double_t val)
 
void CopyParamsToTF1 (TF1 *f, Bool_t copyNumPar=kTRUE, Bool_t copyGrapPar=kTRUE) const
 
void SetErrorsNegative ()
 
void SetFitOrder (std::initializer_list< Int_t > order)
 

Protected Attributes

Int_t fBinX
 
- Protected Attributes inherited from Hal::CorrFitFunc
Femto::EKinematics fKinematics
 
const Int_t fDim
 
Double_t fChi [2]
 
Int_t fMaxIterations
 
Int_t fNormParIndex = {0}
 
Double_t fTolerance
 
Double_t fActiveBins
 
Array_1< Double_t > fRange
 
Bool_t fTrace
 
Bool_t fOwnRangeMap
 
TObject * fCF
 
TH1 * fDenominatorHistogram
 
TH1 * fNumeratorHistogram
 
TH1 * fCorrelationFunctionHistogram
 
CorrFitMaskfMask
 
CorrFitPainterfPainter = {nullptr}
 
MinimizerStepConf fDiscretteMinimzerConf
 
CorrFitHDFuncfHDMaps
 
- Protected Attributes inherited from Hal::CorrFit
ECalcOption fBinCalc
 
EMinFunc fMinFunc
 
EMinAlgo fMinAlgo
 
CorrFitPainterfPainter = {nullptr}
 
Int_t fNDF
 
Double_t fThreshold
 
std::vector< FitParamfParameters
 
std::vector< Int_t > fFitOrder
 
std::vector< std::pair< TF1 *, TVirtualPad * > > fDrawFunc
 
Double_t * fTempParamsEval
 

Friends

class Femto1DCF
 
class CorrFitMath1DCF
 
class CorrFit1DCFPainter
 

Additional Inherited Members

- Public Types inherited from Hal::CorrFit
enum  EMinFunc { kChi , kLog , kChi2 }
 
enum  EMinAlgo {
  kMinuitMigrad , kMinuitSimplex , kMinuitCombined , kMinuitScan ,
  kMinuitFumili , kGLSMultiMinConjungateFR , kGLSMultiMinConjugatePR , kGLSMultiMinBFGS ,
  kGLSMultiMinBFGS2 , kGLSMultiMinSteppestDescent , kGLSMultiFit , kGLSSimAn ,
  kDefaultAlgo , kHalScan , kHalAnt , kHalScanMigrad ,
  kHalScanScan
}
 
enum  ECalcOption { kSimple , kExtrapolated }
 

Detailed Description

abstract class for fitting 1-dim correlation functions

Definition at line 26 of file CorrFit1DCF.h.

Constructor & Destructor Documentation

◆ CorrFit1DCF()

Hal::CorrFit1DCF::CorrFit1DCF ( Int_t parameters = 3)

default constructor

Parameters
parametersnumber of parameters

Definition at line 42 of file CorrFit1DCF.cxx.

◆ ~CorrFit1DCF()

Hal::CorrFit1DCF::~CorrFit1DCF ( )
virtual

Definition at line 210 of file CorrFit1DCF.cxx.

Member Function Documentation

◆ CalculateCF()

virtual Double_t Hal::CorrFit1DCF::CalculateCF ( const Double_t * ,
const Double_t *  ) const
inlineprotectedvirtual

fuction that return value of correlated fuction at given point

Parameters
xarray of values (only x[0] is used)
paramsarray of parameters
Returns
value of CF at x[0]

Reimplemented in Hal::CorrFit1DCF_Exp, Hal::CorrFit1DCF_Gauss, Hal::CorrFit1DCF_Lorentz, Hal::CorrFit1DCF_Multi, Hal::CorrFit1DCF_Poly2, Hal::CorrFit1DCF_Poly, Hal::CorrFit1DCF_Square, Hal::CorrFit1DCF_Sum, Hal::CorrFit1DCF_SumRsame, Hal::CorrFit1DCFCumacDLam, Hal::CorrFit1DCFCumacK0K0, Hal::CorrFit1DCFCumacK0Kch, Hal::CorrFIt1DCFCumacLamLam, Hal::CorrFit1DCFCumacPLam, and Hal::CorrFitKisiel.

Definition at line 93 of file CorrFit1DCF.h.

◆ CalculateNumErrors()

virtual void Hal::CorrFit1DCF::CalculateNumErrors ( TH1 * )
inlineprotectedvirtual

calculate numerical errors

Parameters
hnumerator/denominator of CF - used to get bin center

Definition at line 50 of file CorrFit1DCF.h.

◆ EstimateActiveBins()

void Hal::CorrFit1DCF::EstimateActiveBins ( )
protectedvirtual

estimate number of active bins, NDF, also calculate mask in needed

Implements Hal::CorrFitFunc.

Definition at line 180 of file CorrFit1DCF.cxx.

◆ Eval()

Double_t Hal::CorrFit1DCF::Eval ( Double_t q) const
virtual
Parameters
qmomentum difference (k* or qinv)
Returns
vallue of CF

Definition at line 175 of file CorrFit1DCF.cxx.

◆ EvalCF()

Double_t Hal::CorrFit1DCF::EvalCF ( const Double_t * x,
const Double_t * params ) const
protected

function that return value of correlated function at given bin. If calculation is performed with option "taking into account bin widht" the this return CalculateCF()

Parameters
xarray of values (only x[0] is used)
paramsarray of parameters
Returns
value of CF at x[0]

Definition at line 238 of file CorrFit1DCF.cxx.

◆ EvalCFNormalized()

Double_t Hal::CorrFit1DCF::EvalCFNormalized ( const Double_t * x,
const Double_t * params ) const
protected

returns EvalCF but normalized

Parameters
x
params
Returns

Definition at line 251 of file CorrFit1DCF.cxx.

◆ Fit()

void Hal::CorrFit1DCF::Fit ( TObject * histo)
protectedvirtual

fit this function to given CF

Parameters
histo- object that will be fitted
See also
Femto1DCF::Fit or
Femto3DCF::Fit

Reimplemented from Hal::CorrFitFunc.

Definition at line 212 of file CorrFit1DCF.cxx.

◆ GetChiTF()

double Hal::CorrFit1DCF::GetChiTF ( const double * par) const
protectedvirtual

Implements Hal::CorrFitFunc.

Definition at line 143 of file CorrFit1DCF.cxx.

◆ GetChiTFD()

double Hal::CorrFit1DCF::GetChiTFD ( const double * par) const
protectedvirtual

Implements Hal::CorrFitFunc.

Definition at line 83 of file CorrFit1DCF.cxx.

◆ GetFunctionForDrawing()

TF1 * Hal::CorrFit1DCF::GetFunctionForDrawing ( ) const
protectedvirtual
Returns
TF1 function isued for drawing

Definition at line 218 of file CorrFit1DCF.cxx.

◆ GetFunDrawable()

Double_t Hal::CorrFit1DCF::GetFunDrawable ( Double_t * x,
Double_t * params ) const
protected

functions used for drawing

Parameters
xvalue of momentum difference
paramsparameters array
Returns

Definition at line 169 of file CorrFit1DCF.cxx.

◆ GetLambda()

Double_t Hal::CorrFit1DCF::GetLambda ( ) const
inline
Returns
lambda value (for fermions can be negative)

Definition at line 135 of file CorrFit1DCF.h.

◆ GetLambdaError()

Double_t Hal::CorrFit1DCF::GetLambdaError ( ) const
inline
Returns
lambda error

Definition at line 140 of file CorrFit1DCF.h.

◆ GetLogTFD()

double Hal::CorrFit1DCF::GetLogTFD ( const double * par) const
protectedvirtual

cf retur nan for some cfs

Implements Hal::CorrFitFunc.

Definition at line 117 of file CorrFit1DCF.cxx.

◆ GetMask()

CorrFitMask1D * Hal::CorrFit1DCF::GetMask ( ) const
inlineprotected

Definition at line 45 of file CorrFit1DCF.h.

◆ GetNumericalError()

virtual Double_t Hal::CorrFit1DCF::GetNumericalError ( Int_t ) const
inlineprotectedvirtual

Definition at line 51 of file CorrFit1DCF.h.

◆ GetRadius()

Double_t Hal::CorrFit1DCF::GetRadius ( ) const
inline
Returns
return radius value

Definition at line 125 of file CorrFit1DCF.h.

◆ GetRadiusError()

Double_t Hal::CorrFit1DCF::GetRadiusError ( ) const
inline
Returns
radius error

Definition at line 130 of file CorrFit1DCF.h.

◆ LambdaID()

Int_t Hal::CorrFit1DCF::LambdaID ( ) const
inline
Returns
param number that correspond to lambda

Definition at line 150 of file CorrFit1DCF.h.

◆ MakePainter()

void Hal::CorrFit1DCF::MakePainter ( TString options)
protectedvirtual

makes parent for this objec

Implements Hal::CorrFitFunc.

Definition at line 59 of file CorrFit1DCF.cxx.

◆ PrepareRaw()

void Hal::CorrFit1DCF::PrepareRaw ( )
protectedvirtual

prepare histograms when new fit is called

Implements Hal::CorrFitFunc.

Definition at line 72 of file CorrFit1DCF.cxx.

◆ RadiusID()

Int_t Hal::CorrFit1DCF::RadiusID ( ) const
inline
Returns
param number that correspond to radii

Definition at line 145 of file CorrFit1DCF.h.

◆ RecalculateSmoothFunction()

void Hal::CorrFit1DCF::RecalculateSmoothFunction ( ) const
protectedvirtual

recalculate CF's with taking into acount limited bin resolution

Implements Hal::CorrFitFunc.

Definition at line 256 of file CorrFit1DCF.cxx.

◆ SetErrors()

void Hal::CorrFit1DCF::SetErrors ( TH1 * num,
const TH1 * den ) const
protectedvirtual

"recompute errors in numerator by adding influence of errors in denominator used when fitting with TFD is called

Parameters
numnumerator
dendenominator

Implements Hal::CorrFitFunc.

Definition at line 64 of file CorrFit1DCF.cxx.

◆ SetFittingMask()

void Hal::CorrFit1DCF::SetFittingMask ( const CorrFitMask & map)
virtual

provide user fitting mask, such mask overwrite SetRange method

Parameters

Implements Hal::CorrFitFunc.

Definition at line 268 of file CorrFit1DCF.cxx.

◆ SetLambdaLimits()

void Hal::CorrFit1DCF::SetLambdaLimits ( Double_t min,
Double_t max )
inline

set limits of fitted lambda

Parameters
minminimal value
maxmaximal value

Definition at line 120 of file CorrFit1DCF.h.

◆ SetRLimits()

void Hal::CorrFit1DCF::SetRLimits ( Double_t min,
Double_t max )
inline

set limits of fitted radii

Parameters
minminimal value
maxmaximal value

Definition at line 114 of file CorrFit1DCF.h.

Friends And Related Symbol Documentation

◆ CorrFit1DCFPainter

friend class CorrFit1DCFPainter
friend

Definition at line 29 of file CorrFit1DCF.h.

◆ CorrFitMath1DCF

friend class CorrFitMath1DCF
friend

Definition at line 28 of file CorrFit1DCF.h.

◆ Femto1DCF

friend class Femto1DCF
friend

Definition at line 27 of file CorrFit1DCF.h.

Member Data Documentation

◆ fBinX

Int_t Hal::CorrFit1DCF::fBinX
mutableprotected

pointer of acutally calculated bin during chi-square computation

Definition at line 41 of file CorrFit1DCF.h.


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