CbmRoot
|
Base class for concrete ellipse fitting algorithms. Each derived class must implement the method DoFit. More...
#include <CbmRichRingFitterEllipseBase.h>
Public Member Functions | |
CbmRichRingFitterEllipseBase () | |
Default constructor. More... | |
virtual | ~CbmRichRingFitterEllipseBase () |
Destructor. More... | |
virtual void | DoFit (CbmRichRingLight *ring)=0 |
Abstract method DoFit. To be implemented in the concrete class. Perform a fit to the hits attached to the ring by a ring finder. Fill the ring parameters member variables. 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 |
Base class for concrete ellipse fitting algorithms. Each derived class must implement the method DoFit.
Definition at line 25 of file CbmRichRingFitterEllipseBase.h.
|
inline |
Default constructor.
Definition at line 30 of file CbmRichRingFitterEllipseBase.h.
|
inlinevirtual |
Destructor.
Definition at line 35 of file CbmRichRingFitterEllipseBase.h.
|
inlineprotectedvirtual |
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(), CbmRichRingFitterEllipseMinuit::DoFit(), and CbmRichRingFitterEllipseTau::TransformEllipse().
|
inlineprotectedvirtual |
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.
|
pure virtualinherited |
Abstract method DoFit. To be implemented in the concrete class. Perform a fit to the hits attached to the ring by a ring finder. Fill the ring parameters member variables.
[in,out] | ring | Pointer to CbmRichRingLight |
Implemented in CbmRichRingFitterEllipseMinuit, CbmRichRingFitterEllipseTau, CbmRichRingFitterCOP, CbmRichRingFitterCircle, CbmRichRingFitterTAU, and CbmRichRingFitterRobustCOP.
Referenced by CbmRichReconstruction::RunFitter().
|
staticprotectedinherited |
Definition at line 70 of file CbmRichRingFitterBase.h.
Referenced by CbmRichRingFitterEllipseTau::DoFit().