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

Class implementing the z coordinate over travel distance line fit. More...

#include <CDCSZFitter.h>

Public Member Functions

CDCTrajectorySZ fitWithStereoHits (const CDCTrack &track) const
 Returns the fitted sz trajectory of the track with the z-information of all stereo hits of the number of stereo hits is big enough. More...
 
CDCTrajectorySZ fit (const CDCSegment2D &stereoSegment, const CDCTrajectory2D &axialTrajectory2D) const
 Returns a fitted trajectory.
 
CDCTrajectorySZ fit (const CDCSegment3D &segment3D) const
 Fits a linear sz trajectory to the z and s coordinates in the stereo segment.
 
CDCTrajectorySZ fit (CDCSZObservations observationsSZ) const
 Fits a linear sz trajectory to the s and z coordinates given in the observations.
 
CDCTrajectorySZ fit (const CDCObservations2D &observations2D) const
 Legacy - Fits a linear sz trajectory to the x and y coordinates interpreted as sz space.
 
void update (const CDCSegmentPair &segmentPair) const
 Updates the trajectory of the axial stereo segment pair inplace.
 
void update (CDCTrajectorySZ &trajectorySZ, const CDCSegment2D &stereoSegment, const CDCTrajectory2D &axialTrajectory2D) const
 Update the given sz trajectory reconstructing the stereo segment with a near by axial segment.
 
void update (CDCTrajectorySZ &trajectorySZ, CDCSZObservations &observationsSZ) const
 Update the trajectory with a fit to the observations.
 

Static Public Member Functions

static const CDCSZFittergetFitter ()
 Getter for a standard sz line fitter instance.
 

Detailed Description

Class implementing the z coordinate over travel distance line fit.

Definition at line 27 of file CDCSZFitter.h.

Member Function Documentation

◆ fitWithStereoHits()

CDCTrajectorySZ fitWithStereoHits ( const CDCTrack track) const

Returns the fitted sz trajectory of the track with the z-information of all stereo hits of the number of stereo hits is big enough.

Else return the basic assumption.

Definition at line 125 of file CDCSZFitter.cc.

126 {
127  const bool onlyStereo = true;
128  CDCSZObservations observationsSZ(EFitVariance::c_Proper, onlyStereo);
129  observationsSZ.appendRange(track);
130  if (observationsSZ.size() > 3) {
131  CDCTrajectorySZ szTrajectory;
132  update(szTrajectory, observationsSZ);
133  return szTrajectory;
134  } else {
136  }
137 }
void update(const CDCSegmentPair &segmentPair) const
Updates the trajectory of the axial stereo segment pair inplace.
Definition: CDCSZFitter.cc:163
Class serving as a storage of observed sz positions to present to the sz line fitters.
Linear trajectory in sz space.
static CDCTrajectorySZ basicAssumption()
Constucts a basic assumption, what the z0 start position and the sz slope are, including some broad v...

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