9#include <top/dbobjects/TOPCalModuleT0.h>
10#include <framework/logging/Logger.h>
22 unsigned module = moduleID - 1;
24 B2ERROR(
"Invalid module number, constant not set (" << ClassName() <<
")");
35 unsigned module = moduleID - 1;
37 B2ERROR(
"Invalid module number, status not set (" << ClassName() <<
")");
59 B2INFO(
"Average of " << s <<
" ns subtracted.");
65 unsigned module = moduleID - 1;
67 B2WARNING(
"Invalid module number, returning 0 (" << ClassName() <<
")");
76 unsigned module = moduleID - 1;
78 B2WARNING(
"Invalid module number, returning 0 (" << ClassName() <<
")");
87 unsigned module = moduleID - 1;
95 unsigned module = moduleID - 1;
103 unsigned module = moduleID - 1;
float m_errT0[c_numModules]
errors on constants
EStatus m_status[c_numModules]
calibration status
float m_T0[c_numModules]
calibration constants
@ c_numModules
number of modules
@ c_Calibrated
good calibrated value
@ c_Unusable
bad calibrated value
@ c_Default
uncalibrated default value
bool isCalibrated(int moduleID) const
Returns calibration status.
void suppressAverage()
Subtracts arithmetic average from constants whose status is not c_Default.
double getT0Error(int moduleID) const
Returns error on T0 of a module.
void setUnusable(int moduleID)
Switches calibration status to unusable to flag badly calibrated constant.
bool isDefault(int moduleID) const
Returns calibration status.
bool isUnusable(int moduleID) const
Returns calibration status.
void setT0(int moduleID, double T0, double errT0)
Sets calibration for a single module and switches status to calibrated.
double getT0(int moduleID) const
Returns T0 of a module.
Abstract base class for different kinds of events.