CbmRoot
LKFMinuit Class Reference

#include <LKFMinuit.h>

Collaboration diagram for LKFMinuit:
[legend]

Public Member Functions

 LKFMinuit ()
 
int DoFit (TGraph2DErrors *gr, double pStart[])
 
int Initialize ()
 
double SumDistance2 (double par[])
 
double distance2 (double x, double y, double z, double *p)
 
double distance2err (double x, double y, double z, double ex, double ey, double ez, double *p)
 
void line (double t, double *p, double &x, double &y, double &z)
 
double * GetParFit ()
 
double GetChi2 ()
 
double GetChi2DoF ()
 

Static Public Member Functions

static LKFMinuitInstance ()
 

Private Member Functions

double myFunction (double)
 

Static Private Member Functions

static void minuitFunction (int &nDim, double *gout, double &result, double par[], int flg)
 

Private Attributes

double fparFit [4]
 
double fChi2
 
double fChi2DoF
 

Static Private Attributes

static LKFMinuitfInstance = 0
 
static TGraph2DErrors * fgr = 0
 
static TFitter * fMyFit = 0
 

Detailed Description

Definition at line 19 of file LKFMinuit.h.

Constructor & Destructor Documentation

◆ LKFMinuit()

LKFMinuit::LKFMinuit ( )

Definition at line 188 of file LKFMinuit.cxx.

References fInstance, and LKF_obj.

Member Function Documentation

◆ distance2()

double LKFMinuit::distance2 ( double  x,
double  y,
double  z,
double *  p 
)

Definition at line 93 of file LKFMinuit.cxx.

References x, and y.

◆ distance2err()

double LKFMinuit::distance2err ( double  x,
double  y,
double  z,
double  ex,
double  ey,
double  ez,
double *  p 
)

Definition at line 105 of file LKFMinuit.cxx.

References x, and y.

◆ DoFit()

int LKFMinuit::DoFit ( TGraph2DErrors *  gr,
double  pStart[] 
)

Definition at line 28 of file LKFMinuit.cxx.

References gr, i, and min().

Referenced by CbmTofTrackletTools::Line3DFit(), and CbmTofTrackFinderNN::Line3Dfit().

◆ GetChi2()

double LKFMinuit::GetChi2 ( )
inline

Definition at line 38 of file LKFMinuit.h.

References fChi2.

◆ GetChi2DoF()

double LKFMinuit::GetChi2DoF ( )
inline

Definition at line 39 of file LKFMinuit.h.

References fChi2DoF.

Referenced by CbmTofTrackletTools::Line3DFit(), and CbmTofTrackFinderNN::Line3Dfit().

◆ GetParFit()

double* LKFMinuit::GetParFit ( )
inline

Definition at line 37 of file LKFMinuit.h.

References fparFit.

Referenced by CbmTofTrackletTools::Line3DFit(), and CbmTofTrackFinderNN::Line3Dfit().

◆ Initialize()

int LKFMinuit::Initialize ( )

Definition at line 16 of file LKFMinuit.cxx.

References minuitFunction().

Referenced by CbmTofTrackFinderNN::Init().

◆ Instance()

static LKFMinuit* LKFMinuit::Instance ( )
inlinestatic

Definition at line 21 of file LKFMinuit.h.

References fInstance.

Referenced by CbmTofTrackletTools::CbmTofTrackletTools().

◆ line()

void LKFMinuit::line ( double  t,
double *  p,
double &  x,
double &  y,
double &  z 
)

Definition at line 83 of file LKFMinuit.cxx.

References x, and y.

◆ minuitFunction()

void LKFMinuit::minuitFunction ( int &  nDim,
double *  gout,
double &  result,
double  par[],
int  flg 
)
staticprivate

Definition at line 179 of file LKFMinuit.cxx.

References LKF_obj, and SumDistance2().

Referenced by Initialize().

◆ myFunction()

double LKFMinuit::myFunction ( double  )
private

Definition at line 66 of file LKFMinuit.cxx.

◆ SumDistance2()

double LKFMinuit::SumDistance2 ( double  par[])

Definition at line 144 of file LKFMinuit.cxx.

References d, first, gr, i, sqrt(), x, and y.

Referenced by minuitFunction().

Member Data Documentation

◆ fChi2

double LKFMinuit::fChi2
private

Definition at line 47 of file LKFMinuit.h.

Referenced by GetChi2().

◆ fChi2DoF

double LKFMinuit::fChi2DoF
private

Definition at line 48 of file LKFMinuit.h.

Referenced by GetChi2DoF().

◆ fgr

TGraph2DErrors * LKFMinuit::fgr = 0
staticprivate

Definition at line 44 of file LKFMinuit.h.

◆ fInstance

LKFMinuit * LKFMinuit::fInstance = 0
staticprivate

Definition at line 42 of file LKFMinuit.h.

Referenced by Instance(), and LKFMinuit().

◆ fMyFit

TFitter * LKFMinuit::fMyFit = 0
staticprivate

Definition at line 45 of file LKFMinuit.h.

◆ fparFit

double LKFMinuit::fparFit[4]
private

Definition at line 46 of file LKFMinuit.h.

Referenced by GetParFit().


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