Belle II Software development
TOPCalCommonT0.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#include <TObject.h>
12
13namespace Belle2 {
23 class TOPCalCommonT0: public TObject {
24 public:
25
34 enum EStatus {
39 };
40
45 {}
46
52 TOPCalCommonT0(double T0, double errT0): m_T0(T0), m_errT0(errT0), m_status(c_Calibrated)
53 {}
54
59
64
69 double getT0() const {return m_T0;}
70
75 double getT0Error() const {return m_errT0;}
76
81 bool isCalibrated() const {return m_status == c_Calibrated;}
82
87 bool isDefault() const {return m_status == c_Default;}
88
93 bool isUnusable() const {return m_status == c_Unusable;}
94
100
101 private:
102
103 float m_T0 = 0;
104 float m_errT0 = 0;
109 };
110
112} // end namespace Belle2
113
Common T0 calibration constant.
EStatus m_status
calibration status
bool isDefault() const
Returns calibration status.
TOPCalCommonT0()
Default constructor.
float m_errT0
error on constant
bool isRoughlyCalibrated() const
Returns calibration status.
void setUnusable()
Switches calibration status to unusable to flag badly calibrated constant.
void setRoughlyCalibrated()
Switches calibration status to roughly calibrated (usefull at HLT/express reco)
ClassDef(TOPCalCommonT0, 3)
ClassDef.
EStatus
Calibration status of a constant.
@ c_Calibrated
good calibrated value
@ c_Unusable
bad calibrated value
@ c_roughlyCalibrated
only roughly calibrated value (for HLT/expressreco)
@ c_Default
uncalibrated default value
double getT0() const
Returns T0.
bool isCalibrated() const
Returns calibration status.
TOPCalCommonT0(double T0, double errT0)
Full constructor, sets status to calibrated.
float m_T0
calibration constant
bool isUnusable() const
Returns calibration status.
double getT0Error() const
Returns error on T0.
Abstract base class for different kinds of events.