Belle II Software development
|
Value of the threshold (in ADC counts) used for the pulse identification, for all 512 channels of 16 modules. More...
#include <TOPCalChannelThreshold.h>
Public Types | |
enum | EStatus { c_Default = 0 , c_Calibrated = 1 , c_Unusable = 2 } |
Calibration status of a constant. More... | |
Public Member Functions | |
TOPCalChannelThreshold () | |
Default constructor. | |
void | setThr (int moduleID, unsigned channel, short Thr) |
Sets the threshold (in ADC counts) 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. | |
short | getThr (int moduleID, unsigned channel) const |
Returns the threshold (in ADC counts) of a single channel. | |
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 (TOPCalChannelThreshold, 2) | |
ClassDef. | |
Private Attributes | |
short | m_Thr [c_numModules][c_numChannels] = {{0}} |
threshold value in ADC counts. | |
EStatus | m_status [c_numModules][c_numChannels] = {{c_Default}} |
calibration status | |
Value of the threshold (in ADC counts) used for the pulse identification, for all 512 channels of 16 modules.
From laser scans.
Definition at line 25 of file TOPCalChannelThreshold.h.
|
private |
Sizes.
Enumerator | |
---|---|
c_numModules | number of modules |
c_numChannels | number of channels per module |
Definition at line 149 of file TOPCalChannelThreshold.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 31 of file TOPCalChannelThreshold.h.
|
inline |
|
inline |
Returns the threshold (in ADC counts) of a single channel.
moduleID | module ID (1-based) |
channel | hardware channel number (0-based) |
Definition at line 88 of file TOPCalChannelThreshold.h.
|
inline |
Returns calibration status.
moduleID | module ID (1-based) |
channel | hardware channel number (0-based) |
Definition at line 108 of file TOPCalChannelThreshold.h.
|
inline |
Returns calibration status.
moduleID | module ID (1-based) |
channel | hardware channel number (0-based) |
Definition at line 122 of file TOPCalChannelThreshold.h.
|
inline |
Returns calibration status.
moduleID | module ID (1-based) |
channel | hardware channel number (0-based) |
Definition at line 136 of file TOPCalChannelThreshold.h.
|
inline |
Sets the threshold (in ADC counts) for a single channel and switches status to calibrated.
moduleID | module ID (1-based) |
channel | hardware channel number (0-based) |
Thr | channel threshold |
Definition at line 48 of file TOPCalChannelThreshold.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 68 of file TOPCalChannelThreshold.h.
|
private |
calibration status
Definition at line 154 of file TOPCalChannelThreshold.h.
|
private |
threshold value in ADC counts.
0 by default
Definition at line 153 of file TOPCalChannelThreshold.h.