Belle II Software development
eclAutocovarianceCalibrationC3Algorithm.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
11/* Basf2 headers. */
12#include <calibration/CalibrationAlgorithm.h>
13
14namespace Belle2 {
19 namespace ECL {
20
23 public:
24
27
30
32 void setOutputName(const std::string& outputName) {m_outputName = outputName;}
33
35 void setRegularizationParams(double u0, double u1, double u2)
36 {
37 m_u0 = u0;
38 m_u1 = u1;
39 m_u2 = u2;
40 }
41
43 std::string getOutputName() {return m_outputName;}
44
45 protected:
46
48 virtual EResult calibrate() override;
49
50 private:
51
52 static constexpr int m_numberofADCPoints = 31;
54 std::string m_outputName = "eclAutocovarianceCalibrationC3Algorithm.root";
58 double m_u0 = 13.0;
59 double m_u1 = 4.0;
60 double m_u2 = 1.0;
62 };
63 }
65} // namespace Belle2
66
67
Base class for calibration algorithms.
EResult
The result of calibration.
Calibrate covariance matrix for crystals using delayed Bhabha events.
void setOutputName(const std::string &outputName)
Setter for m_outputName.
void setRegularizationParams(double u0, double u1, double u2)
Setter for RegularizationParams.
int m_TotalCountsThreshold
min number of counts needed to compute calibration
virtual EResult calibrate() override
..Run algorithm on events
Abstract base class for different kinds of events.