9#include <top/dbobjects/TOPCalAsicShift.h>
10#include <framework/logging/Logger.h>
22 unsigned module = moduleID - 1;
24 B2ERROR(
"Invalid module number, constant not set (" << ClassName() <<
")");
28 B2ERROR(
"Invalid asic number, constant not set (" << ClassName() <<
")");
31 m_T0[module][asic] = T0;
38 unsigned module = moduleID - 1;
40 B2ERROR(
"Invalid module number, status not set (" << ClassName() <<
")");
44 B2ERROR(
"Invalid asic number, status not set (" << ClassName() <<
")");
53 unsigned module = moduleID - 1;
55 B2WARNING(
"Invalid module number, returning 0 (" << ClassName() <<
")");
59 B2WARNING(
"Invalid asic number, returning 0 (" << ClassName() <<
")");
62 return m_T0[module][asic];
68 unsigned module = moduleID - 1;
77 unsigned module = moduleID - 1;
86 unsigned module = moduleID - 1;
@ c_numModules
number of modules
@ c_numAsics
number of ASIC's per module
float m_T0[c_numModules][c_numAsics]
calibration constants
EStatus m_status[c_numModules][c_numAsics]
calibration status
@ c_Calibrated
good calibrated value
@ c_Unusable
bad calibrated value
@ c_Default
uncalibrated default value
void setUnusable(int moduleID, unsigned asic)
Switches calibration status to unusable to flag badly calibrated constant.
bool isCalibrated(int moduleID, unsigned asic) const
Returns calibration status.
bool isDefault(int moduleID, unsigned asic) const
Returns calibration status.
bool isUnusable(int moduleID, unsigned asic) const
Returns calibration status.
void setT0(int moduleID, unsigned asic, double T0)
Sets calibration for a single ASIC and switches status to calibrated.
double getT0(int moduleID, unsigned asic) const
Returns T0 of a single asic.
Abstract base class for different kinds of events.