49 void setT0(
int moduleID,
unsigned channel,
double T0,
double errT0);
70 double getT0(
int moduleID,
unsigned channel)
const;
78 double getT0Error(
int moduleID,
unsigned channel)
const;
94 bool isDefault(
int moduleID,
unsigned channel)
const;
102 bool isUnusable(
int moduleID,
unsigned channel)
const;
Channel T0 calibration constants for all 512 channels of 16 modules.
EStatus m_status[c_numModules][c_numChannels]
calibration status
float m_T0[c_numModules][c_numChannels]
calibration constants
float m_errT0[c_numModules][c_numChannels]
errors on constants
EStatus
Calibration status of a constant.
@ c_Calibrated
good calibrated value
@ c_Unusable
bad calibrated value
@ c_Default
uncalibrated default value
@ c_numChannels
number of channels per module
@ c_numModules
number of modules
TOPCalChannelT0()
Default constructor.
ClassDef(TOPCalChannelT0, 3)
ClassDef.
bool isCalibrated(int moduleID, unsigned channel) const
Returns calibration status.
double getT0(int moduleID, unsigned channel) const
Returns T0 of a single channel.
void suppressAverage()
Subtracts arithmetic average of a module from constants whose status is not c_Default.
void setT0(int moduleID, unsigned channel, double T0, double errT0)
Sets calibration for a single channel and switches status to calibrated.
void setUnusable(int moduleID, unsigned channel)
Switches calibration status to unusable to flag badly calibrated constant.
double getT0Error(int moduleID, unsigned channel) const
Returns error on T0 of a single channel.
bool isDefault(int moduleID, unsigned channel) const
Returns calibration status.
bool isUnusable(int moduleID, unsigned channel) const
Returns calibration status.
Abstract base class for different kinds of events.