CbmRoot
CbmRichRingFitterEllipseBase Class Referenceabstract

Base class for concrete ellipse fitting algorithms. Each derived class must implement the method DoFit. More...

#include <CbmRichRingFitterEllipseBase.h>

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

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
 

Detailed Description

Base class for concrete ellipse fitting algorithms. Each derived class must implement the method DoFit.

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

Definition at line 25 of file CbmRichRingFitterEllipseBase.h.

Constructor & Destructor Documentation

◆ CbmRichRingFitterEllipseBase()

CbmRichRingFitterEllipseBase::CbmRichRingFitterEllipseBase ( )
inline

Default constructor.

Definition at line 30 of file CbmRichRingFitterEllipseBase.h.

◆ ~CbmRichRingFitterEllipseBase()

virtual CbmRichRingFitterEllipseBase::~CbmRichRingFitterEllipseBase ( )
inlinevirtual

Destructor.

Definition at line 35 of file CbmRichRingFitterEllipseBase.h.

Member Function Documentation

◆ CalcChi2() [1/2]

◆ CalcChi2() [2/2]

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

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()

virtual void CbmRichRingFitterBase::DoFit ( CbmRichRingLight ring)
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.

Parameters
[in,out]ringPointer to CbmRichRingLight

Implemented in CbmRichRingFitterEllipseMinuit, CbmRichRingFitterEllipseTau, CbmRichRingFitterCOP, CbmRichRingFitterCircle, CbmRichRingFitterTAU, and CbmRichRingFitterRobustCOP.

Referenced by CbmRichReconstruction::RunFitter().

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 file: