Belle II Software  release-08-01-10
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 
13 using namespace std;
14 
15 namespace Belle2 {
21  namespace SVD {
22 
23  void SVDOldDefaultPosition::computeClusterPosition(Belle2::SVD::RawCluster& rawCluster, double& position,
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
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.