Belle II Software  release-05-01-25
CDCRobustSZFitter.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2016 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Nils Braun, 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 CDCSZObservations;
19  class CDCTrajectorySZ;
20 
22  class CDCRobustSZFitter {
23 
24  public:
38  CDCTrajectorySZ fitUsingSimplifiedTheilSen(const CDCSZObservations& szObservations) const;
39 
45  CDCTrajectorySZ fitTheilSen(const CDCSZObservations& szObservations) const;
46 
52  CDCTrajectorySZ fitWeightedTheilSen(const CDCSZObservations& szObservations) const;
53 
54 
55  private:
57  double getMedianZ0(const CDCSZObservations& szObservations, double tanLambda) const;
58  };
59  }
61 }
Belle2::TrackFindingCDC::CDCRobustSZFitter::fitWeightedTheilSen
CDCTrajectorySZ fitWeightedTheilSen(const CDCSZObservations &szObservations) const
Implements the weighted Theil-Sen line fit algorithm.
Definition: CDCRobustSZFitter.cc:82
Belle2::TrackFindingCDC::CDCRobustSZFitter::getMedianZ0
double getMedianZ0(const CDCSZObservations &szObservations, double tanLambda) const
Compute the median z0 intercept from the given observations and an estimated slope.
Definition: CDCRobustSZFitter.cc:117
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::CDCRobustSZFitter::fitTheilSen
CDCTrajectorySZ fitTheilSen(const CDCSZObservations &szObservations) const
Implements the original Theil-Sen line fit algorithm.
Definition: CDCRobustSZFitter.cc:59
Belle2::TrackFindingCDC::CDCRobustSZFitter::fitUsingSimplifiedTheilSen
CDCTrajectorySZ fitUsingSimplifiedTheilSen(const CDCSZObservations &szObservations) const
Fit a linear sz trajectory to the reconstructed stereo segment.
Definition: CDCRobustSZFitter.cc:24