Belle II Software  release-05-01-25
RiemannsMethod.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 CDCObservations2D;
20 
22  class RiemannsMethod {
23 
24  public:
27 
29  void update(CDCTrajectory2D& trajectory2D, CDCObservations2D& observations2D) const;
30 
31  private:
37  void updateWithoutDriftLength(CDCTrajectory2D& trajectory2D,
38  CDCObservations2D& observations2D) const;
39 
45  void updateWithDriftLength(CDCTrajectory2D& trajectory2D,
46  CDCObservations2D& observations2D) const;
47 
48  public:
50  bool isLineConstrained() const
51  {
52  return m_lineConstrained;
53  }
54 
56  bool isOriginConstrained() const
57  {
59  }
60 
62  void setLineConstrained(bool constrained = true)
63  {
64  m_lineConstrained = constrained;
65  }
66 
68  void setOriginConstrained(bool constrained = true)
69  {
70  m_originConstrained = constrained;
71  }
72 
73  private:
75  bool m_lineConstrained;
76 
79  };
80  }
82 }
Belle2::TrackFindingCDC::RiemannsMethod::updateWithDriftLength
void updateWithDriftLength(CDCTrajectory2D &trajectory2D, CDCObservations2D &observations2D) const
Executes the fit using the drift length information.
Definition: RiemannsMethod.cc:146
Belle2::TrackFindingCDC::RiemannsMethod::setLineConstrained
void setLineConstrained(bool constrained=true)
Indicator if this fitter is setup to fit lines.
Definition: RiemannsMethod.h:70
Belle2::TrackFindingCDC::RiemannsMethod::isOriginConstrained
bool isOriginConstrained() const
Getter for the indictor that curves through the origin should be fitted by this fitter.
Definition: RiemannsMethod.h:64
Belle2::TrackFindingCDC::RiemannsMethod::m_lineConstrained
bool m_lineConstrained
Memory for the flag indicating that lines should be fitted.
Definition: RiemannsMethod.h:83
Belle2::TrackFindingCDC::CDCTrajectory2D
Particle trajectory as it is seen in xy projection represented as a circle.
Definition: CDCTrajectory2D.h:46
Belle2::TrackFindingCDC::RiemannsMethod::RiemannsMethod
RiemannsMethod()
Default constructor.
Definition: RiemannsMethod.cc:27
Belle2::TrackFindingCDC::RiemannsMethod::m_originConstrained
bool m_originConstrained
Memory for the flag indicating that curves through the origin shall be fitter.
Definition: RiemannsMethod.h:86
Belle2::TrackFindingCDC::CDCObservations2D
Class serving as a storage of observed drift circles to present to the Riemann fitter.
Definition: CDCObservations2D.h:53
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::RiemannsMethod::setOriginConstrained
void setOriginConstrained(bool constrained=true)
Indicator if this fitter is setup to fit curves through the origin.
Definition: RiemannsMethod.h:76
Belle2::TrackFindingCDC::RiemannsMethod::update
void update(CDCTrajectory2D &trajectory2D, CDCObservations2D &observations2D) const
Executes the fit and updates the trajectory parameters. This may render the information in the observ...
Definition: RiemannsMethod.cc:33
Belle2::TrackFindingCDC::RiemannsMethod::isLineConstrained
bool isLineConstrained() const
Getter for the indictor that lines should be fitted by this fitter.
Definition: RiemannsMethod.h:58
Belle2::TrackFindingCDC::RiemannsMethod::updateWithoutDriftLength
void updateWithoutDriftLength(CDCTrajectory2D &trajectory2D, CDCObservations2D &observations2D) const
Executes the fit without using the drift length information.
Definition: RiemannsMethod.cc:49