Belle II Software development
SVDOldDefaultPosition.cc
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#include <svd/reconstruction/SVDOldDefaultPosition.h>
10
11#include <TMath.h>
12
13using namespace std;
14
15namespace Belle2 {
21 namespace SVD {
22
24 double& positionError)
25 {
26
27 reconstructStrips(rawCluster);
28
29 if (rawCluster.getSize() < 3)
30 applyCoGPosition(rawCluster, position, positionError);
31 else
32 applyAHTPosition(rawCluster, position, positionError);
33
34 //apply scale factors for the position errors
35 positionError = m_OldDefaultCal.getCorrectedClusterPositionError(rawCluster.getSensorID(), rawCluster.isUSide(),
36 rawCluster.getSize(),
37 positionError);
38 }
39
40 } //SVD namespace
42} //Belle2 namespace
double getCorrectedClusterPositionError(const Belle2::VxdID &sensorID, const bool &isU, const int &size, const double &raw_error) const
Return the corrected cluster position error.
Class representing a raw cluster candidate during clustering of the SVD.
Definition: RawCluster.h:33
bool isUSide() const
Definition: RawCluster.h:85
VxdID getSensorID() const
Definition: RawCluster.h:80
void applyCoGPosition(const Belle2::SVD::RawCluster &rawCluster, double &position, double &positionError)
CoG Position Algorithm.
SVDOldDefaultErrorScaleFactors m_OldDefaultCal
Scaling Factors for the OldDefault algorithm.
void reconstructStrips(Belle2::SVD::RawCluster &rawCluster)
reconstruct strips
void applyAHTPosition(const Belle2::SVD::RawCluster &rawCluster, double &position, double &positionError)
AHT Position Algorithm.
void computeClusterPosition(Belle2::SVD::RawCluster &rawCluster, double &position, double &positionError) override
computes the cluster position and position error with the OldDefault algorithm
Abstract base class for different kinds of events.
STL namespace.