Belle II Software development
TOPCommonT0LLAlgorithm.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#include <calibration/CalibrationAlgorithm.h>
11
12namespace Belle2 {
17 namespace TOP {
18
24 public:
25
28
31
36 void setMinError(double minError) {m_minError = minError;}
37
38 private:
39
43 virtual EResult calibrate() final;
44
45 // algorithm parameters
46 double m_minError = 0.020;
48 // ntuple variables
49 int m_expNo = 0;
50 int m_runNo = 0;
51 int m_runLast = 0;
52 float m_fittedOffset = 0;
53 float m_offset = 0;
54 float m_offsetError = 0;
55 float m_errorScaling = 1;
56 int m_numTracks = 0;
57 int m_numEvents = 0;
58 int m_fitStatus = -1;
60 };
61
62 } // end namespace TOP
64} // end namespace Belle2
Base class for calibration algorithms.
EResult
The result of calibration.
Algorithm for common T0 calibration with neg.
float m_offsetError
error on fitted offset
float m_offset
wrap-around of fitted offset (= common T0)
virtual EResult calibrate() final
algorithm implementation
float m_errorScaling
factor used for scaling the error
double m_minError
minimal commonT0 uncertainty [ns] to declare c_OK
void setMinError(double minError)
Sets minimal common T0 uncertainty to declare this calibration as c_OK.
Abstract base class for different kinds of events.