Belle II Software  release-08-01-10
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 
13 using namespace std;
14 
15 namespace 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
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
Abstract base class for different kinds of events.