Belle II Software development
SVDPosErrScaleFactors.h
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#pragma once
10
11namespace Belle2 {
18 struct SVDPosErrScaleFactors final {
19
23
27
31
35
39
41 float getCorrectedValue(float raw_error, int size) const
42 {
43
44 if (size == 1)
45 return raw_error * scaleError_clSize1;
46
47 if (size == 2)
48 return raw_error * scaleError_clSize2;
49
50 if (size == 3)
51 return raw_error * scaleError_clSize3;
52
53 if (size == 4)
54 return raw_error * scaleError_clSize4;
55
56 return raw_error * scaleError_clSize5;
57 }
58
61 };
62
64}
Abstract base class for different kinds of events.
contains the scaling factors for the cluster position error
float scaleError_clSize2
position error scale factor for cluster size = 2
float scaleError_clSize1
position error scale factor for cluster size = 1
ClassDef(SVDPosErrScaleFactors, 2)
needed by root
float scaleError_clSize5
position error scale factor for cluster size > 4
float scaleError_clSize4
position error scale factor for cluster size = 4
float getCorrectedValue(float raw_error, int size) const
returns the corrected cluster position error
float scaleError_clSize3
position error scale factor for cluster size = 3