 |
Belle II Software
release-05-02-19
|
15 #include <framework/logging/Logger.h>
29 class TOPCalChannelThresholdEff:
public TObject {
55 void setThrEff(
int moduleID,
unsigned channel,
float ThrEff,
short offlineThreshold)
57 unsigned module = moduleID - 1;
59 B2ERROR(
"Invalid module number, constant not set (" << ClassName() <<
")");
63 B2ERROR(
"Invalid channel number, constant not set (" << ClassName() <<
")");
78 unsigned module = moduleID - 1;
80 B2ERROR(
"Invalid module number, status not set (" << ClassName() <<
")");
84 B2ERROR(
"Invalid channel number, status not set (" << ClassName() <<
")");
96 float getThrEff(
int moduleID,
unsigned channel)
const
98 unsigned module = moduleID - 1;
100 B2WARNING(
"Invalid module number, returning 0 (" << ClassName() <<
")");
104 B2WARNING(
"Invalid channel number, returning 0 (" << ClassName() <<
")");
119 unsigned module = moduleID - 1;
131 bool isDefault(
int moduleID,
unsigned channel)
const
133 unsigned module = moduleID - 1;
145 bool isUnusable(
int moduleID,
unsigned channel)
const
147 unsigned module = moduleID - 1;
161 unsigned module = moduleID - 1;
163 B2WARNING(
"Invalid module number, returning 0 (" << ClassName() <<
")");
167 B2WARNING(
"Invalid channel number, returning 0 (" << ClassName() <<
")");
@ c_Calibrated
good calibrated value
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...
ClassDef(TOPCalChannelThresholdEff, 3)
ClassDef.
EStatus
Calibration status of a constant.
@ c_numModules
number of modules
@ c_Default
uncalibrated default value
EStatus m_status[c_numModules][c_numChannels]
calibration status
bool isDefault(int moduleID, unsigned channel) const
Returns calibration status.
float getThrEff(int moduleID, unsigned channel) const
Returns the threshold efficiency of a single channel (1.0 if status is c_Default)
bool isUnusable(int moduleID, unsigned channel) const
Returns calibration status.
Abstract base class for different kinds of events.
Class to store the threshold efficiency (i.e.
void setUnusable(int moduleID, unsigned channel)
Switches calibration status to unusable to flag badly calibrated constant.
short getOfflineThreshold(int moduleID, unsigned channel) const
Returns the threshold value used for efficiency evaluation.
bool isCalibrated(int moduleID, unsigned channel) const
Returns calibration status.
TOPCalChannelThresholdEff()
Default constructor.
short m_offlineThreshold[c_numModules][c_numChannels]
threshold value used for efficiency evaluation
@ c_Unusable
bad calibrated value
@ c_numChannels
number of channels per module
float m_ThrEff[c_numModules][c_numChannels]
threshold efficiency value.