![]() |
Belle II Software
release-08-02-05
|
Class to store integrated charge per channel. More...
#include <TOPCalIntegratedCharge.h>


Public Types | |
| enum | EStatus { c_Default = 0 , c_Calibrated = 1 , c_Unusable = 2 } |
| Calibration status of a constant. More... | |
Public Member Functions | |
| TOPCalIntegratedCharge () | |
| Default constructor. | |
| void | setCharge (int moduleID, unsigned channel, double charge) |
| Sets the integrated charge for a single channel and switches status to calibrated. More... | |
| void | setUnusable (int moduleID, unsigned channel) |
| Switches calibration status to unusable to flag badly calibrated constant. More... | |
| double | getCharge (int moduleID, unsigned channel) const |
| Returns the integrated charge of a single channel. 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... | |
Private Types | |
| enum | { c_numModules = 16 , c_numChannels = 512 } |
| Sizes. More... | |
Private Member Functions | |
| ClassDef (TOPCalIntegratedCharge, 1) | |
| ClassDef. | |
Private Attributes | |
| float | m_charge [c_numModules][c_numChannels] = {{0}} |
| integrated charge [C/cm^2] | |
| EStatus | m_status [c_numModules][c_numChannels] = {{c_Default}} |
| calibration status | |
Class to store integrated charge per channel.
Definition at line 23 of file TOPCalIntegratedCharge.h.
|
private |
Sizes.
| Enumerator | |
|---|---|
| c_numModules | number of modules |
| c_numChannels | number of channels per module |
Definition at line 147 of file TOPCalIntegratedCharge.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 29 of file TOPCalIntegratedCharge.h.
|
inline |
Returns the integrated charge of a single channel.
| moduleID | module ID (1-based) |
| channel | hardware channel number (0-based) |
Definition at line 86 of file TOPCalIntegratedCharge.h.
|
inline |
Returns calibration status.
| moduleID | module ID (1-based) |
| channel | hardware channel number (0-based) |
Definition at line 106 of file TOPCalIntegratedCharge.h.
|
inline |
Returns calibration status.
| moduleID | module ID (1-based) |
| channel | hardware channel number (0-based) |
Definition at line 120 of file TOPCalIntegratedCharge.h.
|
inline |
Returns calibration status.
| moduleID | module ID (1-based) |
| channel | hardware channel number (0-based) |
Definition at line 134 of file TOPCalIntegratedCharge.h.
|
inline |
Sets the integrated charge for a single channel and switches status to calibrated.
| moduleID | module ID (1-based) |
| channel | hardware channel number (0-based) |
| charge | integrated charge in Coulombs per cm^2 |
Definition at line 46 of file TOPCalIntegratedCharge.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 66 of file TOPCalIntegratedCharge.h.