CbmRoot
|
This is the implementation of ellipse fitting using MINUIT. More...
#include <CbmRichRingFitterEllipseMinuit.h>
Public Member Functions | |
CbmRichRingFitterEllipseMinuit () | |
Default constructor. | |
virtual | ~CbmRichRingFitterEllipseMinuit () |
Standard destructor. | |
virtual void | DoFit (CbmRichRingLight *ring) |
Inherited from CbmRichRingFitterBase. | |
Protected Member Functions | |
virtual void | CalcChi2 (CbmRichRingLight *ring) |
Calculate chi2 of the ellipse fit. | |
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. | |
Static Protected Attributes | |
static const int | MAX_NOF_HITS_IN_RING = 400 |
Private Member Functions | |
vector< double > | DoFit (const vector< double > &x, const vector< double > &y) |
Execute ring fitting algorithm. | |
void | TransformToRichRing (CbmRichRingLight *ring, const vector< double > &par) |
Transform obtained parameters from MINUIT to CbmRichRingLight. | |
This is the implementation of ellipse fitting using MINUIT.
Definition at line 62 of file CbmRichRingFitterEllipseMinuit.h.
CbmRichRingFitterEllipseMinuit::CbmRichRingFitterEllipseMinuit | ( | ) |
Default constructor.
Definition at line 21 of file CbmRichRingFitterEllipseMinuit.cxx.
|
virtual |
Standard destructor.
Definition at line 23 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 46 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 DoFit(), CbmRichRingFitterEllipseTau::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 92 of file CbmRichRingFitterEllipseBase.h.
References CbmRichHitLight::fX, CbmRichHitLight::fY, CbmRichRingLight::GetHit(), CbmRichRingLight::GetNofHits(), CbmRichRingLight::SetChi2(), sqrt(), x, and y.
|
virtual |
Inherited from CbmRichRingFitterBase.
Implements CbmRichRingFitterBase.
Definition at line 25 of file CbmRichRingFitterEllipseMinuit.cxx.
References CbmRichRingFitterEllipseBase::CalcChi2(), DoFit(), CbmRichHitLight::fX, CbmRichHitLight::fY, CbmRichRingLight::GetHit(), CbmRichRingLight::GetNofHits(), CbmRichRingLight::SetRadius(), CbmRichRingLight::SetXYABP(), and TransformToRichRing().
Referenced by DoFit().
|
private |
Execute ring fitting algorithm.
[in] | x | X coordinates of hits. |
[in] | y | Y coordinates of hit. |
Definition at line 86 of file CbmRichRingFitterEllipseMinuit.cxx.
|
private |
Transform obtained parameters from MINUIT to CbmRichRingLight.
[out] | ring | Pointer to the RICH ring. |
[in] | par | Parameters obtained from MINUIT. |
Definition at line 51 of file CbmRichRingFitterEllipseMinuit.cxx.
References CbmRichRingLight::SetRadius(), CbmRichRingLight::SetXYABP(), and sqrt().
Referenced by DoFit().
|
staticprotectedinherited |
Definition at line 75 of file CbmRichRingFitterBase.h.
Referenced by CbmRichRingFitterEllipseTau::DoFit(), and CbmRichRingFitterCOP::FitRing().