BmnRoot 26.10.0-210-gc52d34b0
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
FitWLSQ Class Reference

#include <FitWLSQ.h>

Public Member Functions

 FitWLSQ (Double_t *xx, Double_t cSigma1=0.01, Double_t cSigma2=0.07, Double_t cP1=0.9, Int_t nNPoints=6, Int_t nNParams=2, Bool_t RBF=kTRUE, Bool_t LHf=kTRUE, Int_t RBfn=7)
 ~FitWLSQ ()
Bool_t Fit (Double_t *y)
Double_t WLSQRms (Double_t *pdY)

Public Attributes

Double_t param [3]
Double_t cov [3][3]
Int_t numItera
Double_t * wrb
Bool_t Status

Private Member Functions

Double_t det3 (Double_t a[3][3])
Double_t alg_add (Double_t a[3][3], Int_t row, Int_t column)
void cov_matrix (Double_t a[3][3])
Double_t f_lh (Double_t *yy, Double_t *zz, Double_t *w, Double_t *par)
Bool_t Initial (Double_t *trk)
void CheckMatrix (Double_t *pdA, Double_t *pdB, TString sz)
Bool_t SymMatrix (Double_t *pdA, Double_t *pdB)
Bool_t WLSQFit (Double_t *pdY)
Double_t WLSQGet (Double_t dX)
Bool_t par_check (Double_t *par, Double_t *par1)
void RB (Double_t *yy, Int_t)
void RBN (Double_t *yy, Int_t)
void RBM (Double_t *yy, Int_t)
void RB_OPT (Double_t *yy, Int_t)
void CovarianceMatrixPrint (void)

Private Attributes

Int_t NPoints
Int_t NParams
Double_t * sigmaF
Double_t * w
Double_t * x
Double_t sigma_k
Double_t Sigma1
Double_t Sigma2
Double_t P1
Double_t resolution
Bool_t RB_FIT
Bool_t LH_INI
Int_t RB_TYPE

Detailed Description

Definition at line 9 of file FitWLSQ.h.

Constructor & Destructor Documentation

◆ FitWLSQ()

FitWLSQ::FitWLSQ ( Double_t * xx,
Double_t cSigma1 = 0.01,
Double_t cSigma2 = 0.07,
Double_t cP1 = 0.9,
Int_t nNPoints = 6,
Int_t nNParams = 2,
Bool_t RBF = kTRUE,
Bool_t LHf = kTRUE,
Int_t RBfn = 7 )

Definition at line 11 of file FitWLSQ.cxx.

References cov, i, LH_INI, NParams, NPoints, numItera, P1, param, RB_FIT, RB_TYPE, resolution, Sigma1, Sigma2, w, wrb, and x.

◆ ~FitWLSQ()

FitWLSQ::~FitWLSQ ( )

Definition at line 55 of file FitWLSQ.cxx.

References w, wrb, and x.

Member Function Documentation

◆ alg_add()

Double_t FitWLSQ::alg_add ( Double_t a[3][3],
Int_t row,
Int_t column )
private

Definition at line 71 of file FitWLSQ.cxx.

References i, and NParams.

Referenced by cov_matrix().

Here is the caller graph for this function:

◆ CheckMatrix()

void FitWLSQ::CheckMatrix ( Double_t * pdA,
Double_t * pdB,
TString sz )
private

Definition at line 253 of file FitWLSQ.cxx.

References i, NParams, and param.

Referenced by SymMatrix().

Here is the caller graph for this function:

◆ cov_matrix()

void FitWLSQ::cov_matrix ( Double_t a[3][3])
private

Definition at line 112 of file FitWLSQ.cxx.

References alg_add(), cov, det3(), i, and NParams.

Referenced by WLSQFit().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CovarianceMatrixPrint()

void FitWLSQ::CovarianceMatrixPrint ( void )
private

Definition at line 740 of file FitWLSQ.cxx.

References cov, and i.

◆ det3()

Double_t FitWLSQ::det3 ( Double_t a[3][3])
inlineprivate

Definition at line 63 of file FitWLSQ.cxx.

Referenced by cov_matrix().

Here is the caller graph for this function:

◆ f_lh()

Double_t FitWLSQ::f_lh ( Double_t * yy,
Double_t * zz,
Double_t * w,
Double_t * par )
private

Definition at line 143 of file FitWLSQ.cxx.

References i, NParams, NPoints, P1, Sigma1, and Sigma2.

Referenced by Initial().

Here is the caller graph for this function:

◆ Fit()

Bool_t FitWLSQ::Fit ( Double_t * y)

Definition at line 671 of file FitWLSQ.cxx.

References i, Initial(), LH_INI, NParams, NPoints, numItera, par_check(), param, RB(), RB_OPT(), RB_TYPE, RBM(), RBN(), resolution, sigma_k, Status, WLSQFit(), wrb, x, and y.

Here is the call graph for this function:

◆ Initial()

Bool_t FitWLSQ::Initial ( Double_t * trk)
private

Definition at line 181 of file FitWLSQ.cxx.

References f, f_lh(), i, NParams, NPoints, param, w, and x.

Referenced by Fit().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ par_check()

Bool_t FitWLSQ::par_check ( Double_t * par,
Double_t * par1 )
private

Definition at line 393 of file FitWLSQ.cxx.

References i, and NParams.

Referenced by Fit().

Here is the caller graph for this function:

◆ RB()

void FitWLSQ::RB ( Double_t * yy,
Int_t itera_rb )
private

Definition at line 411 of file FitWLSQ.cxx.

References i, LH_INI, NParams, NPoints, param, RB_FIT, RB_TYPE, resolution, sigma_k, wrb, and x.

Referenced by Fit().

Here is the caller graph for this function:

◆ RB_OPT()

void FitWLSQ::RB_OPT ( Double_t * yy,
Int_t itera_rb )
private

Definition at line 605 of file FitWLSQ.cxx.

References d, fabs(), i, LH_INI, NParams, NPoints, P1, param, RB_FIT, RB_TYPE, resolution, Sigma1, Sigma2, sigma_k, wrb, and x.

Referenced by Fit().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RBM()

void FitWLSQ::RBM ( Double_t * yy,
Int_t itera_rb )
private

Definition at line 542 of file FitWLSQ.cxx.

References i, LH_INI, NParams, NPoints, P1, param, RB_FIT, RB_TYPE, resolution, Sigma1, Sigma2, sigma_k, wrb, and x.

Referenced by Fit().

Here is the caller graph for this function:

◆ RBN()

void FitWLSQ::RBN ( Double_t * yy,
Int_t itera_rb )
private

Definition at line 468 of file FitWLSQ.cxx.

References i, LH_INI, NParams, NPoints, P1, param, RB_FIT, RB_TYPE, resolution, Sigma1, Sigma2, sigma_k, wrb, and x.

Referenced by Fit().

Here is the caller graph for this function:

◆ SymMatrix()

Bool_t FitWLSQ::SymMatrix ( Double_t * pdA,
Double_t * pdB )
private

Definition at line 277 of file FitWLSQ.cxx.

References CheckMatrix(), i, NParams, and param.

Referenced by WLSQFit().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ WLSQFit()

Bool_t FitWLSQ::WLSQFit ( Double_t * pdY)
private

Definition at line 316 of file FitWLSQ.cxx.

References cov_matrix(), i, NParams, NPoints, SymMatrix(), wrb, and x.

Referenced by Fit().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ WLSQGet()

Double_t FitWLSQ::WLSQGet ( Double_t dX)
private

Definition at line 363 of file FitWLSQ.cxx.

References d, i, NParams, and param.

Referenced by WLSQRms().

Here is the caller graph for this function:

◆ WLSQRms()

Double_t FitWLSQ::WLSQRms ( Double_t * pdY)

Definition at line 376 of file FitWLSQ.cxx.

References i, NPoints, WLSQGet(), wrb, and x.

Here is the call graph for this function:

Member Data Documentation

◆ cov

Double_t FitWLSQ::cov[3][3]

Definition at line 26 of file FitWLSQ.h.

Referenced by FitWLSQ(), cov_matrix(), and CovarianceMatrixPrint().

◆ LH_INI

Bool_t FitWLSQ::LH_INI
private

Definition at line 75 of file FitWLSQ.h.

Referenced by FitWLSQ(), Fit(), RB(), RB_OPT(), RBM(), and RBN().

◆ NParams

Int_t FitWLSQ::NParams
private

◆ NPoints

Int_t FitWLSQ::NPoints
private

Definition at line 11 of file FitWLSQ.h.

Referenced by FitWLSQ(), f_lh(), Fit(), Initial(), RB(), RB_OPT(), RBM(), RBN(), WLSQFit(), and WLSQRms().

◆ numItera

Int_t FitWLSQ::numItera

Definition at line 27 of file FitWLSQ.h.

Referenced by FitWLSQ(), and Fit().

◆ P1

Double_t FitWLSQ::P1
private

Definition at line 72 of file FitWLSQ.h.

Referenced by FitWLSQ(), f_lh(), RB_OPT(), RBM(), and RBN().

◆ param

Double_t FitWLSQ::param[3]

Definition at line 25 of file FitWLSQ.h.

Referenced by FitWLSQ(), CheckMatrix(), Fit(), Initial(), RB(), RB_OPT(), RBM(), RBN(), SymMatrix(), and WLSQGet().

◆ RB_FIT

Bool_t FitWLSQ::RB_FIT
private

Definition at line 74 of file FitWLSQ.h.

Referenced by FitWLSQ(), RB(), RB_OPT(), RBM(), and RBN().

◆ RB_TYPE

Int_t FitWLSQ::RB_TYPE
private

Definition at line 76 of file FitWLSQ.h.

Referenced by FitWLSQ(), Fit(), RB(), RB_OPT(), RBM(), and RBN().

◆ resolution

Double_t FitWLSQ::resolution
private

Definition at line 73 of file FitWLSQ.h.

Referenced by FitWLSQ(), Fit(), RB(), RB_OPT(), RBM(), and RBN().

◆ Sigma1

Double_t FitWLSQ::Sigma1
private

Definition at line 70 of file FitWLSQ.h.

Referenced by FitWLSQ(), f_lh(), RB_OPT(), RBM(), and RBN().

◆ Sigma2

Double_t FitWLSQ::Sigma2
private

Definition at line 71 of file FitWLSQ.h.

Referenced by FitWLSQ(), f_lh(), RB_OPT(), RBM(), and RBN().

◆ sigma_k

Double_t FitWLSQ::sigma_k
private

Definition at line 69 of file FitWLSQ.h.

Referenced by Fit(), RB(), RB_OPT(), RBM(), and RBN().

◆ sigmaF

Double_t* FitWLSQ::sigmaF
private

Definition at line 66 of file FitWLSQ.h.

◆ Status

Bool_t FitWLSQ::Status

Definition at line 29 of file FitWLSQ.h.

Referenced by Fit().

◆ w

Double_t* FitWLSQ::w
private

Definition at line 67 of file FitWLSQ.h.

Referenced by FitWLSQ(), ~FitWLSQ(), and Initial().

◆ wrb

Double_t* FitWLSQ::wrb

Definition at line 28 of file FitWLSQ.h.

Referenced by FitWLSQ(), ~FitWLSQ(), Fit(), RB(), RB_OPT(), RBM(), RBN(), WLSQFit(), and WLSQRms().

◆ x

Double_t* FitWLSQ::x
private

Definition at line 68 of file FitWLSQ.h.

Referenced by FitWLSQ(), ~FitWLSQ(), Fit(), Initial(), RB(), RB_OPT(), RBM(), RBN(), WLSQFit(), and WLSQRms().


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