CbmRoot
|
This is the implementation of ellipse fitting using MINUIT. More...
#include <CbmRichRingFitterEllipseMinuit.h>
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... | |
This is the implementation of ellipse fitting using MINUIT.
Definition at line 62 of file CbmRichRingFitterEllipseMinuit.h.
CbmRichRingFitterEllipseMinuit::CbmRichRingFitterEllipseMinuit | ( | ) |
Default constructor.
Definition at line 17 of file CbmRichRingFitterEllipseMinuit.cxx.
|
virtual |
Standard destructor.
Definition at line 19 of file CbmRichRingFitterEllipseMinuit.cxx.
|
inlineprotectedvirtualinherited |
Calculate chi2 of the ellipse fit.
[in,out] | ring | Fitted RICH ring with ellipse fitter. |
Reimplemented from CbmRichRingFitterBase.
Definition at line 42 of file CbmRichRingFitterEllipseBase.h.
References CbmRichHitLight::fX, CbmRichHitLight::fY, CbmRichRingLight::GetAaxis(), CbmRichRingLight::GetBaxis(), CbmRichRingLight::GetHit(), CbmRichRingLight::GetNofHits(), CbmRichRingLight::GetXF1(), CbmRichRingLight::GetXF2(), CbmRichRingLight::GetYF1(), CbmRichRingLight::GetYF2(), CbmRichRingLight::SetChi2(), sqrt(), x, and y.
Referenced by CbmRichRingFitterEllipseTau::DoFit(), DoFit(), and CbmRichRingFitterEllipseTau::TransformEllipse().
|
inlineprotectedvirtualinherited |
Calculate chi2 of the ellipse fitting using parameters of 2D curve.
[in] | A | A parameter of curve. |
[in] | B | B parameter of curve. |
[in] | C | C parameter of curve. |
[in] | D | D parameter of curve. |
[in] | E | E parameter of curve. |
[in] | F | F parameter of curve. |
[in] | ring | Fitted 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.
|
virtual |
Inherited from CbmRichRingFitterBase.
Implements CbmRichRingFitterBase.
Definition at line 21 of file CbmRichRingFitterEllipseMinuit.cxx.
References CbmRichRingFitterEllipseBase::CalcChi2(), CbmRichHitLight::fX, CbmRichHitLight::fY, CbmRichRingLight::GetHit(), CbmRichRingLight::GetNofHits(), i, CbmRichRingLight::SetRadius(), CbmRichRingLight::SetXYABP(), and TransformToRichRing().
|
private |
|
private |
Transform obtained parameters from MINUIT to CbmRichRingLight.
[out] | ring | Pointer to the RICH ring. |
[in] | par | Parameters obtained from MINUIT. |
Definition at line 46 of file CbmRichRingFitterEllipseMinuit.cxx.
References CbmRichRingLight::SetRadius(), CbmRichRingLight::SetXYABP(), and sqrt().
Referenced by DoFit().
|
staticprotectedinherited |
Definition at line 70 of file CbmRichRingFitterBase.h.
Referenced by CbmRichRingFitterEllipseTau::DoFit().