Belle II Software development
CDCRiemannFitter.cc
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8#include <tracking/trackFindingCDC/fitting/CDCRiemannFitter.h>
9
10#include <tracking/trackFindingCDC/fitting/CDCFitter2D.icc.h>
11
12using namespace Belle2;
13using namespace TrackFindingCDC;
14
16
19
21{
22 static CDCRiemannFitter fitter;
23 return fitter;
24}
25
26const CDCRiemannFitter& CDCRiemannFitter::getFitter(bool fromOrigin, bool line)
27{
28 static CDCRiemannFitter fitter;
29 if (fromOrigin) fitter.setOriginConstrained();
30 if (line) fitter.setLineConstrained();
31 return fitter;
32}
33
35{
36 static CDCRiemannFitter lineFitter;
37 lineFitter.setLineConstrained();
38 return lineFitter;
39}
40
42{
43 static CDCRiemannFitter originCircleFitter;
44 originCircleFitter.setOriginConstrained();
45 return originCircleFitter;
46}
Class implementing a fit for two dimensional trajectory circle using a generic fitting backend.
Definition: CDCFitter2D.h:33
Class implementing the Riemann fit for two dimensional trajectory circle.
static const CDCRiemannFitter & getLineFitter()
Static getter for a line fitter.
static const CDCRiemannFitter & getFitter()
Static getter for a general Riemann fitter.
static const CDCRiemannFitter & getOriginCircleFitter()
Static getter for an origin circle fitter.
void setLineConstrained(bool constrained=true)
Indicator if this fitter is setup to fit lines.
void setOriginConstrained(bool constrained=true)
Indicator if this fitter is setup to fit curves through the origin.
Abstract base class for different kinds of events.