CbmRoot
Loading...
Searching...
No Matches
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 25 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 103 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 116 of file LKFMinuit.cxx.

References x, and y.

Referenced by SumDistance2().

◆ DoFit()

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

◆ GetChi2()

double LKFMinuit::GetChi2 ( )
inline

Definition at line 38 of file LKFMinuit.h.

References fChi2.

◆ GetChi2DoF()

double LKFMinuit::GetChi2DoF ( )
inline

◆ GetParFit()

double * LKFMinuit::GetParFit ( )
inline

◆ Initialize()

int LKFMinuit::Initialize ( )

Definition at line 23 of file LKFMinuit.cxx.

References fMyFit, and minuitFunction().

Referenced by CbmTofExtendTracks::Init(), and CbmTofTrackFinderNN::Init().

◆ Instance()

static LKFMinuit * LKFMinuit::Instance ( )
inlinestatic

Definition at line 27 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 92 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 182 of file LKFMinuit.cxx.

References LKF_obj, and SumDistance2().

Referenced by Initialize().

◆ myFunction()

double LKFMinuit::myFunction ( double )
private

Definition at line 74 of file LKFMinuit.cxx.

◆ SumDistance2()

double LKFMinuit::SumDistance2 ( double par[])

Definition at line 150 of file LKFMinuit.cxx.

References distance2err(), fgr, first, gr, x, and y.

Referenced by minuitFunction().

Member Data Documentation

◆ fChi2

double LKFMinuit::fChi2
private

Definition at line 47 of file LKFMinuit.h.

Referenced by DoFit(), and GetChi2().

◆ fChi2DoF

double LKFMinuit::fChi2DoF
private

Definition at line 48 of file LKFMinuit.h.

Referenced by DoFit(), and GetChi2DoF().

◆ fgr

TGraph2DErrors * LKFMinuit::fgr = 0
staticprivate

Definition at line 44 of file LKFMinuit.h.

Referenced by DoFit(), and SumDistance2().

◆ 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.

Referenced by DoFit(), and Initialize().

◆ fparFit

double LKFMinuit::fparFit[4]
private

Definition at line 46 of file LKFMinuit.h.

Referenced by DoFit(), and GetParFit().


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