Belle II Software development
SVDCoGOnlyPosition.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/SVDCoGOnlyPosition.h>
10
11#include <TMath.h>
12
13using namespace std;
14
15namespace Belle2 {
21 namespace SVD {
22
23 void SVDCoGOnlyPosition::computeClusterPosition(Belle2::SVD::RawCluster& rawCluster, double& position, double& positionError)
24 {
25 reconstructStrips(rawCluster);
26 applyUnfolding(rawCluster);
27 applyCoGPosition(rawCluster, position, positionError);
28
29 //apply scale factors for the position errors
30 positionError = m_CoGOnlyCal.getCorrectedClusterPositionError(rawCluster.getSensorID(), rawCluster.isUSide(), rawCluster.getSize(),
31 positionError);
32
33 }
34
35 } //SVD namespace
37} //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
SVDCoGOnlyErrorScaleFactors m_CoGOnlyCal
Scaling Factors for the CoGOnly algorithm.
void applyUnfolding(Belle2::SVD::RawCluster &rawCluster)
Apply cluster charges unfolding.
void applyCoGPosition(const Belle2::SVD::RawCluster &rawCluster, double &position, double &positionError)
CoG Position Algorithm.
void reconstructStrips(Belle2::SVD::RawCluster &rawCluster)
reconstruct strips
void computeClusterPosition(Belle2::SVD::RawCluster &rawCluster, double &position, double &positionError) override
computes the cluster position and position error with the CoG algorithm
Abstract base class for different kinds of events.
STL namespace.