14#ifndef CBM_RICH_RING_FITTER_BASE
15#define CBM_RICH_RING_FITTER_BASE
65 for (
int i = 0; i < nofHits; i++) {
68 float d = r -
sqrt((xc - xh) * (xc - xh) + (yc - yh) * (yc - yh));
friend fvec sqrt(const fvec &a)
Abstract base class for concrete Rich Ring fitting algorithms. Each derived class must implement the ...
virtual ~CbmRichRingFitterBase()
Destructor.
static const int MAX_NOF_HITS_IN_RING
CbmRichRingFitterBase()
Default constructor.
virtual void DoFit(CbmRichRingLight *ring)=0
Abstract method DoFit. To be implemented in the concrete class. Perform a fit to the hits attached to...
virtual void CalcChi2(CbmRichRingLight *ring)
Calculate chi2 for circle fitting algorithms.
int GetNofHits() const
Return number of hits in ring.
CbmRichHitLight GetHit(int ind)
Return hit by the index.