![]() |
Belle II Software
release-08-02-05
|
Class to store the threshold efficiency (i.e. More...
#include <TOPCalChannelThresholdEff.h>


Public Types | |
| enum | EStatus { c_Default = 0 , c_Calibrated = 1 , c_Unusable = 2 } |
| Calibration status of a constant. More... | |
Public Member Functions | |
| TOPCalChannelThresholdEff () | |
| Default constructor. More... | |
| void | setThrEff (int moduleID, unsigned channel, float ThrEff, short offlineThreshold) |
| Sets the threshold efficiency and correspolding threshold for a single channel and switches status to calibrated (efficiency definition : ratio of integral of fit function over a range [threshold, +inf] to integral over the full range [0, +inf]) More... | |
| void | setUnusable (int moduleID, unsigned channel) |
| Switches calibration status to unusable to flag badly calibrated constant. More... | |
| float | getThrEff (int moduleID, unsigned channel) const |
| Returns the threshold efficiency of a single channel (1.0 if status is c_Default) More... | |
| bool | isCalibrated (int moduleID, unsigned channel) const |
| Returns calibration status. More... | |
| bool | isDefault (int moduleID, unsigned channel) const |
| Returns calibration status. More... | |
| bool | isUnusable (int moduleID, unsigned channel) const |
| Returns calibration status. More... | |
| short | getOfflineThreshold (int moduleID, unsigned channel) const |
| Returns the threshold value used for efficiency evaluation. More... | |
Private Types | |
| enum | { c_numModules = 16 , c_numChannels = 512 } |
| Sizes. More... | |
Private Member Functions | |
| ClassDef (TOPCalChannelThresholdEff, 3) | |
| ClassDef. | |
Private Attributes | |
| float | m_ThrEff [c_numModules][c_numChannels] = {{0}} |
| threshold efficiency value. More... | |
| EStatus | m_status [c_numModules][c_numChannels] = {{c_Default}} |
| calibration status | |
| short | m_offlineThreshold [c_numModules][c_numChannels] = {{0}} |
| threshold value used for efficiency evaluation | |
Class to store the threshold efficiency (i.e.
the efficiency for the pulse identification, function of the threshold being used in the CFD or template fit algorithm ) for all 512 channels of 16 modules. From laser scans.
Definition at line 26 of file TOPCalChannelThresholdEff.h.
|
private |
Sizes.
| Enumerator | |
|---|---|
| c_numModules | number of modules |
| c_numChannels | number of channels per module |
Definition at line 175 of file TOPCalChannelThresholdEff.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 TOPCalChannelThresholdEff.h.
|
inline |
Default constructor.
Threshold efficiencies are set to 0 by default.
Definition at line 42 of file TOPCalChannelThresholdEff.h.
|
inline |
Returns the threshold value used for efficiency evaluation.
| moduleID | module ID (1-based) |
| channel | hardware channel number (0-based) |
Definition at line 156 of file TOPCalChannelThresholdEff.h.
|
inline |
Returns the threshold efficiency of a single channel (1.0 if status is c_Default)
| moduleID | module ID (1-based) |
| channel | hardware channel number (0-based) |
Definition at line 93 of file TOPCalChannelThresholdEff.h.
|
inline |
Returns calibration status.
| moduleID | module ID (1-based) |
| channel | hardware channel number (0-based) |
Definition at line 114 of file TOPCalChannelThresholdEff.h.
|
inline |
Returns calibration status.
| moduleID | module ID (1-based) |
| channel | hardware channel number (0-based) |
Definition at line 128 of file TOPCalChannelThresholdEff.h.
|
inline |
Returns calibration status.
| moduleID | module ID (1-based) |
| channel | hardware channel number (0-based) |
Definition at line 142 of file TOPCalChannelThresholdEff.h.
|
inline |
Sets the threshold efficiency and correspolding threshold for a single channel and switches status to calibrated (efficiency definition : ratio of integral of fit function over a range [threshold, +inf] to integral over the full range [0, +inf])
| moduleID | module ID (1-based) |
| channel | hardware channel number (0-based) |
| ThrEff | channel threshold efficiency |
| offlineThreshold | threshold ADC counts used in efficiency evaluation |
Definition at line 52 of file TOPCalChannelThresholdEff.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 73 of file TOPCalChannelThresholdEff.h.
|
private |
threshold efficiency value.
0 by default.
Definition at line 180 of file TOPCalChannelThresholdEff.h.