Belle II Software  release-05-01-25
ExtendedRiemannsMethod.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2014 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Oliver Frost *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #pragma once
11 
12 namespace Belle2 {
17  namespace TrackFindingCDC {
18  class CDCTrajectory2D;
19  class UncertainPerigeeCircle;
20  class CDCObservations2D;
21 
23  class ExtendedRiemannsMethod {
24 
25  public:
28 
33  void update(CDCTrajectory2D& trajectory2D, CDCObservations2D& observations2D) const;
34 
35  private:
37  UncertainPerigeeCircle fitInternal(CDCObservations2D& observations2D) const;
38 
39  public:
41  bool isLineConstrained() const
42  {
43  return m_lineConstrained;
44  }
45 
47  bool isOriginConstrained() const
48  {
50  }
51 
53  void setLineConstrained(bool constrained = true)
54  {
55  m_lineConstrained = constrained;
56  }
57 
59  void setOriginConstrained(bool constrained = true)
60  {
61  m_originConstrained = constrained;
62  }
63 
64  private:
66  bool m_lineConstrained;
67 
70  };
71  }
73 }
Belle2::TrackFindingCDC::ExtendedRiemannsMethod::isLineConstrained
bool isLineConstrained() const
Getter for the indictor that lines should be fitted by this fitter.
Definition: ExtendedRiemannsMethod.h:49
Belle2::TrackFindingCDC::ExtendedRiemannsMethod::fitInternal
UncertainPerigeeCircle fitInternal(CDCObservations2D &observations2D) const
Internal method doing the heavy work.
Definition: ExtendedRiemannsMethod.cc:296
Belle2::TrackFindingCDC::ExtendedRiemannsMethod::m_lineConstrained
bool m_lineConstrained
Memory for the flag indicating that lines should be fitted.
Definition: ExtendedRiemannsMethod.h:74
Belle2::TrackFindingCDC::ExtendedRiemannsMethod::ExtendedRiemannsMethod
ExtendedRiemannsMethod()
Constructor setting the default constraints.
Definition: ExtendedRiemannsMethod.cc:30
Belle2::TrackFindingCDC::ExtendedRiemannsMethod::isOriginConstrained
bool isOriginConstrained() const
Getter for the indictor that curves through the origin should be fitted by this fitter.
Definition: ExtendedRiemannsMethod.h:55
Belle2::TrackFindingCDC::ExtendedRiemannsMethod::update
void update(CDCTrajectory2D &trajectory2D, CDCObservations2D &observations2D) const
Executes the fit and updates the trajectory parameters This may render the information in the observa...
Definition: ExtendedRiemannsMethod.cc:36
Belle2::TrackFindingCDC::ExtendedRiemannsMethod::setOriginConstrained
void setOriginConstrained(bool constrained=true)
Indicator if this fitter is setup to fit curves through the origin.
Definition: ExtendedRiemannsMethod.h:67
Belle2::TrackFindingCDC::ExtendedRiemannsMethod::m_originConstrained
bool m_originConstrained
Memory for the flag indicating that curves through the origin shall be fitter.
Definition: ExtendedRiemannsMethod.h:77
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::ExtendedRiemannsMethod::setLineConstrained
void setLineConstrained(bool constrained=true)
Indicator if this fitter is setup to fit lines.
Definition: ExtendedRiemannsMethod.h:61