 |
Belle II Software
release-05-01-25
|
14 #include <framework/logging/Logger.h>
25 class TOPCalIntegratedCharge:
public TObject {
48 void setCharge(
int moduleID,
unsigned channel,
double charge)
50 unsigned module = moduleID - 1;
52 B2ERROR(
"Invalid module number, constant not set (" << ClassName() <<
")");
56 B2ERROR(
"Invalid channel number, constant not set (" << ClassName() <<
")");
70 unsigned module = moduleID - 1;
72 B2ERROR(
"Invalid module number, status not set (" << ClassName() <<
")");
76 B2ERROR(
"Invalid channel number, status not set (" << ClassName() <<
")");
88 double getCharge(
int moduleID,
unsigned channel)
const
90 unsigned module = moduleID - 1;
92 B2WARNING(
"Invalid module number, returning 0 (" << ClassName() <<
")");
96 B2WARNING(
"Invalid channel number, returning 0 (" << ClassName() <<
")");
110 unsigned module = moduleID - 1;
122 bool isDefault(
int moduleID,
unsigned channel)
const
124 unsigned module = moduleID - 1;
136 bool isUnusable(
int moduleID,
unsigned channel)
const
138 unsigned module = moduleID - 1;
bool isDefault(int moduleID, unsigned channel) const
Returns calibration status.
bool isUnusable(int moduleID, unsigned channel) const
Returns calibration status.
bool isCalibrated(int moduleID, unsigned channel) const
Returns calibration status.
void setUnusable(int moduleID, unsigned channel)
Switches calibration status to unusable to flag badly calibrated constant.
@ c_numChannels
number of channels per module
double getCharge(int moduleID, unsigned channel) const
Returns the integrated charge of a single channel.
float m_charge[c_numModules][c_numChannels]
integrated charge [C/cm^2]
@ c_Unusable
bad calibrated value
EStatus m_status[c_numModules][c_numChannels]
calibration status
Abstract base class for different kinds of events.
@ c_numModules
number of modules
ClassDef(TOPCalIntegratedCharge, 1)
ClassDef.
@ c_Calibrated
good calibrated value
void setCharge(int moduleID, unsigned channel, double charge)
Sets the integrated charge for a single channel and switches status to calibrated.
@ c_Default
uncalibrated default value
EStatus
Calibration status of a constant.
TOPCalIntegratedCharge()
Default constructor.