CbmRoot
CbmRichRingFitterEllipseMinuit Class Reference

This is the implementation of ellipse fitting using MINUIT. More...

#include <CbmRichRingFitterEllipseMinuit.h>

Inheritance diagram for CbmRichRingFitterEllipseMinuit:
[legend]
Collaboration diagram for CbmRichRingFitterEllipseMinuit:
[legend]

Public Member Functions

 CbmRichRingFitterEllipseMinuit ()
 Default constructor. More...
 
virtual ~CbmRichRingFitterEllipseMinuit ()
 Standard destructor. More...
 
virtual void DoFit (CbmRichRingLight *ring)
 Inherited from CbmRichRingFitterBase. More...
 

Protected Member Functions

virtual void CalcChi2 (CbmRichRingLight *ring)
 Calculate chi2 of the ellipse fit. More...
 
virtual void CalcChi2 (double A, double B, double C, double D, double E, double F, CbmRichRingLight *ring)
 Calculate chi2 of the ellipse fitting using parameters of 2D curve. More...
 

Static Protected Attributes

static const int MAX_NOF_HITS_IN_RING
 

Private Member Functions

vector< double > DoFit (const vector< double > &x, const vector< double > &y)
 Execute ring fitting algorithm. More...
 
void TransformToRichRing (CbmRichRingLight *ring, const vector< double > &par)
 Transform obtained parameters from MINUIT to CbmRichRingLight. More...
 

Detailed Description

This is the implementation of ellipse fitting using MINUIT.

Author
Semen Lebedev s.leb.nosp@m.edev.nosp@m.@gsi..nosp@m.de
Date
2011

Definition at line 62 of file CbmRichRingFitterEllipseMinuit.h.

Constructor & Destructor Documentation

◆ CbmRichRingFitterEllipseMinuit()

CbmRichRingFitterEllipseMinuit::CbmRichRingFitterEllipseMinuit ( )

Default constructor.

Definition at line 17 of file CbmRichRingFitterEllipseMinuit.cxx.

◆ ~CbmRichRingFitterEllipseMinuit()

CbmRichRingFitterEllipseMinuit::~CbmRichRingFitterEllipseMinuit ( )
virtual

Standard destructor.

Definition at line 19 of file CbmRichRingFitterEllipseMinuit.cxx.

Member Function Documentation

◆ CalcChi2() [1/2]

virtual void CbmRichRingFitterEllipseBase::CalcChi2 ( CbmRichRingLight ring)
inlineprotectedvirtualinherited

◆ CalcChi2() [2/2]

virtual void CbmRichRingFitterEllipseBase::CalcChi2 ( double  A,
double  B,
double  C,
double  D,
double  E,
double  F,
CbmRichRingLight ring 
)
inlineprotectedvirtualinherited

Calculate chi2 of the ellipse fitting using parameters of 2D curve.

Parameters
[in]AA parameter of curve.
[in]BB parameter of curve.
[in]CC parameter of curve.
[in]DD parameter of curve.
[in]EE parameter of curve.
[in]FF parameter of curve.
[in]ringFitted RICH ring with ellipse fitter.

Definition at line 87 of file CbmRichRingFitterEllipseBase.h.

References fabs(), CbmRichHitLight::fX, CbmRichHitLight::fY, CbmRichRingLight::GetHit(), CbmRichRingLight::GetNofHits(), CbmRichRingLight::SetChi2(), sqrt(), x, and y.

◆ DoFit() [1/2]

◆ DoFit() [2/2]

vector< double > CbmRichRingFitterEllipseMinuit::DoFit ( const vector< double > &  x,
const vector< double > &  y 
)
private

Execute ring fitting algorithm.

Parameters
[in]xX coordinates of hits.
[in]yY coordinates of hit.
Returns
Vector of fitted parameters.

Definition at line 83 of file CbmRichRingFitterEllipseMinuit.cxx.

References i, min(), x, and y.

◆ TransformToRichRing()

void CbmRichRingFitterEllipseMinuit::TransformToRichRing ( CbmRichRingLight ring,
const vector< double > &  par 
)
private

Transform obtained parameters from MINUIT to CbmRichRingLight.

Parameters
[out]ringPointer to the RICH ring.
[in]parParameters obtained from MINUIT.

Definition at line 46 of file CbmRichRingFitterEllipseMinuit.cxx.

References CbmRichRingLight::SetRadius(), CbmRichRingLight::SetXYABP(), and sqrt().

Referenced by DoFit().

Member Data Documentation

◆ MAX_NOF_HITS_IN_RING

const int CbmRichRingFitterBase::MAX_NOF_HITS_IN_RING
staticprotectedinherited
Initial value:
=
400

Definition at line 70 of file CbmRichRingFitterBase.h.

Referenced by CbmRichRingFitterEllipseTau::DoFit().


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