Belle II Software  release-08-01-10
SVDCoGCalibrationFunction.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/SVDCoGCalibrationFunction.h>
9 
10 using namespace Belle2;
11 
12 std::vector <SVDCoGCalibrationFunction::cogFunction> SVDCoGCalibrationFunction::m_implementations;
13 
14 std::vector <SVDCoGCalibrationFunction::cogFunctionErr> SVDCoGCalibrationFunction::m_implementationsErr;
15 
17 {
18  for (int i = 0; i < nTriggerBins; i++) {
19  m_bias[i] = a.m_bias[i];
20  m_scale[i] = a.m_scale[i];
21  }
22  m_current = a.m_current;
23  for (int i = 0; i < m_nPar; i++)
24  m_par[i] = a.m_par[i];
25 }
26 
28 {
29  if (this == &a)
30  return *this;
31  for (int i = 0; i < nTriggerBins; i++) {
32  m_bias[i] = a.m_bias[i];
33  m_scale[i] = a.m_scale[i];
34  }
35  m_current = a.m_current;
36  for (int i = 0; i < m_nPar; i++)
37  m_par[i] = a.m_par[i];
38  return *this;
39 }
class to contain the CoG Time calibrations
static const int nTriggerBins
total number of trigger bins
static std::vector< cogFunction > m_implementations
vector of fuctions for time calibration, we use the m_current
double m_bias[nTriggerBins]
function parameters & implementations
double m_scale[nTriggerBins]
trigger-bin dependent scale
static const int m_nPar
number of parameters of highest-order implemented pol (5)
SVDCoGCalibrationFunction & operator=(const Belle2::SVDCoGCalibrationFunction &a)
operator =
static std::vector< cogFunctionErr > m_implementationsErr
Do not stream this, please throw it in the WC.
double m_par[m_nPar]
vector of parameters
Abstract base class for different kinds of events.