 |
Belle II Software
release-05-01-25
|
14 #include <framework/logging/Logger.h>
28 class TOPCalChannelNoise:
public TObject {
53 void setNoise(
int moduleID,
unsigned channel,
double rmsNoise)
55 unsigned module = moduleID - 1;
57 B2ERROR(
"Invalid module number, constant not set (" << ClassName() <<
")");
61 B2ERROR(
"Invalid channel number, constant not set (" << ClassName() <<
")");
75 unsigned module = moduleID - 1;
77 B2ERROR(
"Invalid module number, status not set (" << ClassName() <<
")");
81 B2ERROR(
"Invalid channel number, status not set (" << ClassName() <<
")");
93 double getNoise(
int moduleID,
unsigned channel)
const
95 unsigned module = moduleID - 1;
97 B2WARNING(
"Invalid module number, returning 0 (" << ClassName() <<
")");
101 B2WARNING(
"Invalid channel number, returning 0 (" << ClassName() <<
")");
115 unsigned module = moduleID - 1;
127 bool isDefault(
int moduleID,
unsigned channel)
const
129 unsigned module = moduleID - 1;
141 bool isUnusable(
int moduleID,
unsigned channel)
const
143 unsigned module = moduleID - 1;
@ c_Calibrated
good calibrated value
ClassDef(TOPCalChannelNoise, 2)
ClassDef.
float m_rmsNoise[c_numModules][c_numChannels]
noise [ADC counts]
void setNoise(int moduleID, unsigned channel, double rmsNoise)
Sets the noise r.m.s for a single channel and switches status to calibrated.
double getNoise(int moduleID, unsigned channel) const
Returns the noise r.m.s of a single channel (0 or negative: data not available)
EStatus m_status[c_numModules][c_numChannels]
calibration status
@ c_numModules
number of modules
Abstract base class for different kinds of events.
EStatus
Calibration status of a constant.
bool isUnusable(int moduleID, unsigned channel) const
Returns calibration status.
@ c_numChannels
number of channels per module
@ c_Unusable
bad calibrated value
void setUnusable(int moduleID, unsigned channel)
Switches calibration status to unusable to flag badly calibrated constant.
bool isDefault(int moduleID, unsigned channel) const
Returns calibration status.
bool isCalibrated(int moduleID, unsigned channel) const
Returns calibration status.
TOPCalChannelNoise()
Default constructor.
@ c_Default
uncalibrated default value