Belle II Software  release-08-01-10
CDCFitter2D< AFitMethod > Class Template Reference

Class implementing a fit for two dimensional trajectory circle using a generic fitting backend. More...

#include <CDCFitter2D.h>

Inheritance diagram for CDCFitter2D< AFitMethod >:
Collaboration diagram for CDCFitter2D< AFitMethod >:

Public Member Functions

 CDCFitter2D ()
 Default constructor.
 
 ~CDCFitter2D ()
 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.
 
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.
 
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 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 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.
 

Private Member Functions

template<class AHits >
CDCTrajectory2D fitGeneric (const AHits &hits) const
 Fits a collection of hit typs which are convertable to observation circles.
 
template<class AStartHits , class AEndHits >
CDCTrajectory2D fitGeneric (const AStartHits &startHits, const AEndHits &endHits) const
 Fits together two collections of hit types which are convertable to observation circles.
 
template<class AHits >
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.
 
template<class AStartHits , class AEndHits >
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.
 

Private Attributes

bool m_usePosition = true
 Flag indicating the reconstructed position shall be used in the fit.
 
bool m_useOrientation = false
 Flag indicating the reference position and drift length with right left orientation shall be used in the fit.
 
EFitVariance m_fitVariance = EFitVariance::c_Proper
 Default variance to be used in the fit.
 

Detailed Description

template<class AFitMethod>
class Belle2::TrackFindingCDC::CDCFitter2D< AFitMethod >

Class implementing a fit for two dimensional trajectory circle using a generic fitting backend.

Definition at line 33 of file CDCFitter2D.h.


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