Belle II Software  release-08-01-10
SVDPositionErrorFunction.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 #include<svd/dbobjects/SVDPositionErrorFunction.h>
9 
10 using namespace Belle2;
11 
12 std::vector <SVDPositionErrorFunction::posErrFunction> SVDPositionErrorFunction::m_implementations;
13 
14 
16 {
17  for (int i = 0; i < maxClusterSize; i++) {
18  m_a1[i] = a.m_a1[i];
19  m_a2[i] = a.m_a2[i];
20  m_b1[i] = a.m_b1[i];
21  m_c1[i] = a.m_c1[i];
22  }
23 
24  m_current = a.m_current;
25 
26 }
27 
29 {
30  if (this == &a)
31  return *this;
32 
33  for (int i = 0; i < maxClusterSize; i++) {
34  m_a1[i] = a.m_a1[i];
35  m_a2[i] = a.m_a2[i];
36  m_b1[i] = a.m_b1[i];
37  m_c1[i] = a.m_c1[i];
38  }
39 
40  m_current = a.m_current;
41 
42  return *this;
43 }
class to contain the Cluster Position Error Formulae
static const int maxClusterSize
total number of cluster sizes
static std::vector< posErrFunction > m_implementations
vector of functions for position error, we use the m_current
double m_a1[maxClusterSize]
function parameters & implementations
double m_a2[maxClusterSize]
size dependent a2-parameter
double m_c1[maxClusterSize]
size dependent c1-parameter
SVDPositionErrorFunction & operator=(const Belle2::SVDPositionErrorFunction &a)
operator =
double m_b1[maxClusterSize]
size dependent b1-parameter
Abstract base class for different kinds of events.