![]() |
Belle II Software development
|
Utility class to fit hit triplet and relations of them. More...
#include <FacetFitter.h>
Static Public Member Functions | |
| static double | fit (const TrackingUtilities::CDCFacet &facet, int nSteps=100, double maxChi2=std::numeric_limits< double >::infinity()) |
| Fits a proper line to the facet and returns the chi2. | |
| static TrackingUtilities::UncertainParameterLine2D | fit (const TrackingUtilities::CDCFacet &fromFacet, const TrackingUtilities::CDCFacet &toFacet, int nSteps=100) |
| Fit a line the positions xyl and the weights. | |
| static double | fitChi2 (const TrackingUtilities::CDCFacet &fromFacet, const TrackingUtilities::CDCFacet &toFacet) |
| Calculate only the chi2 of a line fitted to the hits of the two facets. | |
| static TrackingUtilities::UncertainParameterLine2D | fit (TrackingUtilities::Matrix< double, 3, 3 > xyl, TrackingUtilities::Matrix< double, 3, 1 > w, int nSteps=100) |
| Fit a line the positions xyl and the weights. | |
Utility class to fit hit triplet and relations of them.
Definition at line 26 of file FacetFitter.h.
|
static |
Fits a proper line to the facet and returns the chi2.
The fitted line is committed to the facet only if its chi2 is at most maxChi2. With the default maxChi2 = infinity the line is always committed; passing a finite maxChi2 skips the construction of the line and its covariance matrix for facets that fail the cut anyway.
Definition at line 263 of file FacetFitter.cc.
|
static |
Fit a line the positions xyl and the weights.
| fromFacet | First facet from the pair of facets |
| toFacet | Second facet from the pair of facets |
| nSteps | Maximal number of steps to be taken in the mimisation |
Definition at line 358 of file FacetFitter.cc.
|
static |
Fit a line the positions xyl and the weights.
Fits a line to a number of observations with tunable acurracy versus execution speed. Special implementations for nSteps = 0 and nSteps=1 have been integrated. High nSteps use a general minimization method.
| xyl | A matrix of drift length observations |
| w | An array of weights corresponding to the observations |
| nSteps | Maximal number of steps to be taken in the mimisation |
Definition at line 392 of file FacetFitter.cc.
|
static |
Calculate only the chi2 of a line fitted to the hits of the two facets.
Returns the same value as fit(fromFacet, toFacet, 0).chi2() but avoids the construction of the line and its covariance matrix.
| fromFacet | First facet from the pair of facets |
| toFacet | Second facet from the pair of facets |
Definition at line 375 of file FacetFitter.cc.