Belle II Software development
|
r.m.s. More...
#include <TOPCalChannelNoise.h>
Public Types | |
enum | EStatus { c_Default = 0 , c_Calibrated = 1 , c_Unusable = 2 } |
Calibration status of a constant. More... | |
Public Member Functions | |
TOPCalChannelNoise () | |
Default constructor. | |
void | setNoise (int moduleID, unsigned channel, double rmsNoise) |
Sets the noise r.m.s 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 | getNoise (int moduleID, unsigned channel) const |
Returns the noise r.m.s of a single channel (0 or negative: data not available) | |
bool | isCalibrated (int moduleID, unsigned channel) const |
Returns calibration status. | |
bool | isDefault (int moduleID, unsigned channel) const |
Returns calibration status. | |
bool | isUnusable (int moduleID, unsigned channel) const |
Returns calibration status. | |
Private Types | |
enum | { c_numModules = 16 , c_numChannels = 512 } |
Sizes. More... | |
Private Member Functions | |
ClassDef (TOPCalChannelNoise, 2) | |
ClassDef. | |
Private Attributes | |
float | m_rmsNoise [c_numModules][c_numChannels] = {{0}} |
noise [ADC counts] | |
EStatus | m_status [c_numModules][c_numChannels] = {{c_Default}} |
calibration status | |
r.m.s.
of noise for all 512 channels of 16 modules.
The noise for masked channels is undefined. It is the caller's responsibility to check for masked channels
Definition at line 26 of file TOPCalChannelNoise.h.
|
private |
Sizes.
Enumerator | |
---|---|
c_numModules | number of modules |
c_numChannels | number of channels per module |
Definition at line 152 of file TOPCalChannelNoise.h.
enum EStatus |
Calibration status of a constant.
Enumerator | |
---|---|
c_Default | uncalibrated default value |
c_Calibrated | good calibrated value |
c_Unusable | bad calibrated value |
Definition at line 32 of file TOPCalChannelNoise.h.
|
inline |
Default constructor.
Noises are set to 0 by default.
Definition at line 42 of file TOPCalChannelNoise.h.
|
inline |
Returns the noise r.m.s of a single channel (0 or negative: data not available)
moduleID | module ID (1-based) |
channel | hardware channel number (0-based) |
Definition at line 91 of file TOPCalChannelNoise.h.
|
inline |
Returns calibration status.
moduleID | module ID (1-based) |
channel | hardware channel number (0-based) |
Definition at line 111 of file TOPCalChannelNoise.h.
|
inline |
Returns calibration status.
moduleID | module ID (1-based) |
channel | hardware channel number (0-based) |
Definition at line 125 of file TOPCalChannelNoise.h.
|
inline |
Returns calibration status.
moduleID | module ID (1-based) |
channel | hardware channel number (0-based) |
Definition at line 139 of file TOPCalChannelNoise.h.
|
inline |
Sets the noise r.m.s for a single channel and switches status to calibrated.
If data for a given channel not available set noise to 0 (or just skip the call)
moduleID | module ID (1-based) |
channel | hardware channel number (0-based) |
rmsNoise | r.m.s. of noise [ADC counts] |
Definition at line 51 of file TOPCalChannelNoise.h.
|
inline |
Switches calibration status to unusable to flag badly calibrated constant.
moduleID | module ID (1-based) |
channel | hardware channel number (0-based) |
Definition at line 71 of file TOPCalChannelNoise.h.
|
private |
noise [ADC counts]
Definition at line 157 of file TOPCalChannelNoise.h.
|
private |
calibration status
Definition at line 158 of file TOPCalChannelNoise.h.