Belle II Software  release-08-01-10
CDCRiemannFitter Class Reference

Class implementing the Riemann fit for two dimensional trajectory circle. More...

#include <CDCRiemannFitter.h>

Inheritance diagram for CDCRiemannFitter:
Collaboration diagram for CDCRiemannFitter:

Public Member Functions

 CDCRiemannFitter ()
 Default constructor.
 
 ~CDCRiemannFitter ()
 Default destructor.
 
CDCTrajectory2D fit (const CDCObservations2D &observations2D) const
 Fits a collection of observation drift circles.
 
CDCTrajectory2D fit (CDCObservations2D &&observations2D) const
 Fits a collection of observation drift circles.
 
CDCTrajectory2D fit (const CDCTrack &track) const
 Fits the track.
 
CDCTrajectory2D fit (const CDCSegment3D &segment) const
 Fits the segment.
 
CDCTrajectory2D fit (const CDCSegment2D &fromSegment, const CDCSegment2D &toSegment) const
 Fits to the two segments.
 
CDCTrajectory2D fit (const CDCSegment2D &segment) const
 Fits the segment.
 
CDCTrajectory2D fit (const std::vector< const CDCWireHit * > &wireHit) const
 Fits to the wire hit observations.
 
CDCTrajectory2D fit (const std::vector< const CDCWire * > &wires) const
 Fits to the wire positions. Explicit specialisation to be used from python.
 
CDCTrajectory2D fit (const CDCWireHitSegment &wireHits) const
 Fits to the wire positions. Explicit specialisation to be used from python.
 
void update (CDCTrajectory2D &trajectory2D, const CDCObservations2D &observations2D) const
 Update the trajectory with a fit to the observations.
 
void update (CDCTrajectory2D &trajectory2D, CDCObservations2D &&observations2D) const
 Update the trajectory with a fit to the observations.
 
void update (CDCTrajectory2D &trajectory2D, const CDCSegment2D &segment) const
 Updates the given trajectory inplace from the given segment.
 
void update (CDCTrajectory2D &trajectory2D, const CDCAxialSegmentPair &axialSegmentPair) const
 Updates the given trajectory inplace from the given segment pair.
 
void update (CDCTrajectory2D &trajectory2D, CDCObservations2D &observations2D) const
 Executes the fit and updates the trajectory parameters This may render the information in the observation object.
 
void useOnlyPosition ()
 Setup the fitter to use only the reconstructed positions of the hits.
 
void useOnlyOrientation ()
 Setup the fitter to use only reference position and the drift length with right left orientation.
 
void usePositionAndOrientation ()
 Setup the fitter to use both the reconstructed position and the reference position and the drift length with right left orientation.
 
void setFitVariance (EFitVariance fitVariance)
 Setup the fitter to use the given variance measure by default.
 
bool isLineConstrained () const
 Getter for the indictor that lines should be fitted by this fitter.
 
bool isOriginConstrained () const
 Getter for the indictor that curves through the origin should be fitted by this 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.
 

Static Public Member Functions

static const CDCRiemannFittergetFitter ()
 Static getter for a general Riemann fitter.
 
static const CDCRiemannFittergetFitter (bool fromOrigin, bool line)
 Static getter for a given Riemann fitter.
 
static const CDCRiemannFittergetLineFitter ()
 Static getter for a line fitter.
 
static const CDCRiemannFittergetOriginCircleFitter ()
 Static getter for an origin circle fitter.
 

Private Member Functions

CDCTrajectory2D fitGeneric (const AHits &hits) const
 Fits a collection of hit typs which are convertable to observation circles.
 
CDCTrajectory2D fitGeneric (const AStartHits &startHits, const AEndHits &endHits) const
 Fits together two collections of hit types which are convertable to observation circles.
 
void updateGeneric (CDCTrajectory2D &trajectory2D, const AHits &hits) const
 Updates a given trajectory with a fit to a collection of hits types, which are convertable to observation circles.
 
void updateGeneric (CDCTrajectory2D &trajectory2D, const AStartHits &startHits, const AEndHits &endHits) const
 Updates a given trajectory with a fit to two collection of hit types, which are convertable to observation circles.
 
UncertainPerigeeCircle fitInternal (CDCObservations2D &observations2D) const
 Internal method doing the heavy work.
 

Private Attributes

bool m_usePosition
 Flag indicating the reconstructed position shall be used in the fit.
 
bool m_useOrientation
 Flag indicating the reference position and drift length with right left orientation shall be used in the fit.
 
EFitVariance m_fitVariance
 Default variance to be used in the fit.
 
bool m_lineConstrained
 Memory for the flag indicating that lines should be fitted.
 
bool m_originConstrained
 Memory for the flag indicating that curves through the origin shall be fitter.
 

Detailed Description

Class implementing the Riemann fit for two dimensional trajectory circle.

Definition at line 24 of file CDCRiemannFitter.h.


The documentation for this class was generated from the following files: