Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
Hal::CorrFit3DCF Class Referenceabstract
Inheritance diagram for Hal::CorrFit3DCF:
Hal::CorrFitFunc3D Hal::CorrFitFunc Hal::CorrFit Hal::CorrFit3DCFBowlerSinyukov Hal::CorrFit3DCFMultiDim Hal::CorrFit3DCF_Gauss Hal::CorrFit3DCF_Gauss2 Hal::CorrFit3DCF_GaussCross Hal::CorrFit3DCF_Lorentz Hal::CorrFit3DCF_Square Hal::CorrFitMath3DCF

Public Member Functions

 CorrFit3DCF (Int_t parameters=4)
 
void SetFuncRange (Double_t x_min, Double_t x_max, Double_t y_min, Double_t y_max, Double_t z_min, Double_t z_max)
 
void SetRadiusLimits (Double_t min, Double_t max)
 
void SetFittingMask (const CorrFitMask &map)
 
Double_t Eval (Double_t x, Double_t y, Double_t z)
 
- Public Member Functions inherited from Hal::CorrFitFunc3D
 CorrFitFunc3D (e3DMode mode=e3DMode::kNormal3R, Int_t par=-1, Int_t dim=1)
 
Double_t GetRout () const
 
Double_t GetRoutError () const
 
Double_t GetRside () const
 
Double_t GetRsideError () const
 
Double_t GetRlong () const
 
Double_t GetRlongError () const
 
Double_t GetLambda () const
 
Double_t GetLambdaError () const
 
void SetLambdaLimits (Double_t min, Double_t max)
 
void SetRoutLimits (Double_t min, Double_t max)
 
void SetRsideLimits (Double_t min, Double_t max)
 
void SetRlongLimits (Double_t min, Double_t max)
 
Int_t RoutID () const
 
Int_t RsideID () const
 
Int_t RlongID () const
 
Int_t RoutsideID () const
 
Int_t RoutlongID () const
 
Int_t RsidelongID () 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 options)
 
CorrFitMask3DGetMask () const
 
virtual void RecalculateFunction () const
 
virtual void RecalculateSmoothFunction () const
 
void SetErrors (TH1 *num, const TH1 *den) const
 
virtual void EstimateActiveBins ()
 
void DrawPureFunction (TString option)
 
void DrawFunctionWithCF (TString option)
 
void DrawOther (TString option)
 
void DrawDiagonalOther (TString option)
 
void DrawDiagonalWithCF (TString option)
 
void PrepareRaw ()
 
TF1 * GetDrawableFunc (TString option)
 
double GetChiTFD (const double *par) const
 
double GetChiTF (const double *par) const
 
double GetLogTFD (const double *par) const
 
Double_t EvalDenominator (Double_t x, Double_t y, Double_t z) const
 
virtual Double_t EvalCF (const Double_t *x, const Double_t *params) const
 
virtual Double_t CalculateCF (const Double_t *x, const Double_t *params) const =0
 
virtual Double_t GetNumericalError (Int_t, Int_t, Int_t) const
 
 CorrFit3DCF (e3DMode mode, Int_t parameters=3)
 
- Protected Member Functions inherited from Hal::CorrFitFunc
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 Fit (TObject *histo)
 
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 = {0}
 
Int_t fBinY = {0}
 
Int_t fBinZ = {0}
 
- Protected Attributes inherited from Hal::CorrFitFunc3D
const e3DMode fMode
 
- 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 CorrFitMath3DCF
 
class CorrFitSHCF
 
class CorrFit3DCFPainter
 

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 }
 
- Protected Types inherited from Hal::CorrFitFunc3D
enum class  e3DMode {
  kNormal3R , kRatio3R , kNormal6R , kRatio6R ,
  kPlus3R , kPlus6R
}
 

Detailed Description

Definition at line 26 of file CorrFit3DCF.h.

Constructor & Destructor Documentation

◆ CorrFit3DCF() [1/2]

Hal::CorrFit3DCF::CorrFit3DCF ( e3DMode mode,
Int_t parameters = 3 )
protected

Definition at line 41 of file CorrFit3DCF.cxx.

◆ CorrFit3DCF() [2/2]

Hal::CorrFit3DCF::CorrFit3DCF ( Int_t parameters = 4)

default constructor

Parameters
parametersnumber of parameters

Definition at line 56 of file CorrFit3DCF.cxx.

◆ ~CorrFit3DCF()

Hal::CorrFit3DCF::~CorrFit3DCF ( )
virtual

Definition at line 325 of file CorrFit3DCF.cxx.

Member Function Documentation

◆ CalculateCF()

virtual Double_t Hal::CorrFit3DCF::CalculateCF ( const Double_t * x,
const Double_t * params ) const
protectedpure virtual

◆ EstimateActiveBins()

void Hal::CorrFit3DCF::EstimateActiveBins ( )
protectedvirtual

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

Implements Hal::CorrFitFunc.

Definition at line 283 of file CorrFit3DCF.cxx.

◆ Eval()

Double_t Hal::CorrFit3DCF::Eval ( Double_t x,
Double_t y,
Double_t z )

return function at given point

Parameters
x
y
z
Returns

Definition at line 327 of file CorrFit3DCF.cxx.

◆ EvalCF()

Double_t Hal::CorrFit3DCF::EvalCF ( const Double_t * x,
const Double_t * params ) const
protectedvirtual

calulate value of cf

Parameters
xbin center
paramsparameters
Returns
return value at bin center (CalculateCF) if option "bin" was not used otherwise return value of CF calculated with taken into account averaged value in the middle of CF bin

Definition at line 332 of file CorrFit3DCF.cxx.

◆ EvalDenominator()

Double_t Hal::CorrFit3DCF::EvalDenominator ( Double_t x,
Double_t y,
Double_t z ) const
protected

return evaluated value of denominator at point x,y,z

Parameters
xout momentum difference
yside momentum difference
zlong momentum difference
Returns
value of denomitor at (out,side,long)

Definition at line 62 of file CorrFit3DCF.cxx.

◆ GetChiTF()

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

Implements Hal::CorrFitFunc.

Definition at line 223 of file CorrFit3DCF.cxx.

◆ GetChiTFD()

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

Implements Hal::CorrFitFunc.

Definition at line 191 of file CorrFit3DCF.cxx.

◆ GetDrawableFunc()

TF1 * Hal::CorrFit3DCF::GetDrawableFunc ( TString option)
protected

Definition at line 714 of file CorrFit3DCF.cxx.

◆ GetLogTFD()

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

Implements Hal::CorrFitFunc.

Definition at line 254 of file CorrFit3DCF.cxx.

◆ GetMask()

CorrFitMask3D * Hal::CorrFit3DCF::GetMask ( ) const
inlineprotected

Definition at line 71 of file CorrFit3DCF.h.

◆ GetNumericalError()

virtual Double_t Hal::CorrFit3DCF::GetNumericalError ( Int_t ,
Int_t ,
Int_t  ) const
inlineprotectedvirtual
Parameters
xq-out
yq-side
zq-long
Returns
numerical error for given bin

Definition at line 126 of file CorrFit3DCF.h.

◆ MakePainter()

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

makes parent for this objec

Implements Hal::CorrFitFunc.

Definition at line 767 of file CorrFit3DCF.cxx.

◆ PrepareRaw()

void Hal::CorrFit3DCF::PrepareRaw ( )
protectedvirtual

prepare histograms when new fit is called

Implements Hal::CorrFitFunc.

Definition at line 180 of file CorrFit3DCF.cxx.

◆ RecalculateFunction()

virtual void Hal::CorrFit3DCF::RecalculateFunction ( ) const
inlineprotectedvirtual

called for each calculation of chi2 or loglikehood minimalization - used for recalculation CF is parameters are changed

Reimplemented from Hal::CorrFitFunc.

Reimplemented in Hal::CorrFit3DCFBowlerSinyukov, and Hal::CorrFit3DCFMultiDim.

Definition at line 76 of file CorrFit3DCF.h.

◆ RecalculateSmoothFunction()

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

recalculate CF's with taking into acount limited bin resolution

Implements Hal::CorrFitFunc.

Definition at line 687 of file CorrFit3DCF.cxx.

◆ SetErrors()

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

recompute errors in num by using information from den histogram

Parameters
num
den

Implements Hal::CorrFitFunc.

Definition at line 168 of file CorrFit3DCF.cxx.

◆ SetFittingMask()

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

provide user fitting mask, such mask overwrite SetRange method

Parameters

Implements Hal::CorrFitFunc.

Definition at line 705 of file CorrFit3DCF.cxx.

◆ SetFuncRange()

void Hal::CorrFit3DCF::SetFuncRange ( Double_t x_min,
Double_t x_max,
Double_t y_min,
Double_t y_max,
Double_t z_min,
Double_t z_max )

set range fo fitting

Parameters
x_minmin. value in out direction
x_maxmax. value in out direction
y_minmin. value in side direction
y_maxmax. value in side direction
z_minmin. value in long direction
z_maxmax. value in long direction

Definition at line 153 of file CorrFit3DCF.cxx.

◆ SetRadiusLimits()

void Hal::CorrFit3DCF::SetRadiusLimits ( Double_t min,
Double_t max )

set radii limits (out,side, and long)

Parameters
min
max

Definition at line 319 of file CorrFit3DCF.cxx.

Friends And Related Symbol Documentation

◆ CorrFit3DCFPainter

friend class CorrFit3DCFPainter
friend

Definition at line 33 of file CorrFit3DCF.h.

◆ CorrFitMath3DCF

friend class CorrFitMath3DCF
friend

Definition at line 31 of file CorrFit3DCF.h.

◆ CorrFitSHCF

friend class CorrFitSHCF
friend

Definition at line 32 of file CorrFit3DCF.h.

Member Data Documentation

◆ fBinX

Int_t Hal::CorrFit3DCF::fBinX = {0}
mutableprotected

processed currednly binX, binY and binZ;

Definition at line 67 of file CorrFit3DCF.h.

◆ fBinY

Int_t Hal::CorrFit3DCF::fBinY = {0}
protected

Definition at line 67 of file CorrFit3DCF.h.

◆ fBinZ

Int_t Hal::CorrFit3DCF::fBinZ = {0}
protected

Definition at line 67 of file CorrFit3DCF.h.


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