12#include <framework/logging/Logger.h>
52 void setThrEff(
int moduleID,
unsigned channel,
float ThrEff,
short offlineThreshold)
54 unsigned module = moduleID - 1;
56 B2ERROR(
"Invalid module number, constant not set (" << ClassName() <<
")");
60 B2ERROR(
"Invalid channel number, constant not set (" << ClassName() <<
")");
75 unsigned module = moduleID - 1;
77 B2ERROR(
"Invalid module number, status not set (" << ClassName() <<
")");
81 B2ERROR(
"Invalid channel number, status not set (" << ClassName() <<
")");
93 float getThrEff(
int moduleID,
unsigned channel)
const
95 unsigned module = moduleID - 1;
97 B2WARNING(
"Invalid module number, returning 0 (" << ClassName() <<
")");
101 B2WARNING(
"Invalid channel number, returning 0 (" << ClassName() <<
")");
116 unsigned module = moduleID - 1;
130 unsigned module = moduleID - 1;
144 unsigned module = moduleID - 1;
158 unsigned module = moduleID - 1;
160 B2WARNING(
"Invalid module number, returning 0 (" << ClassName() <<
")");
164 B2WARNING(
"Invalid channel number, returning 0 (" << ClassName() <<
")");
Class to store the threshold efficiency (i.e.
float m_ThrEff[c_numModules][c_numChannels]
threshold efficiency value.
bool isCalibrated(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)
EStatus m_status[c_numModules][c_numChannels]
calibration status
short getOfflineThreshold(int moduleID, unsigned channel) const
Returns the threshold value used for efficiency evaluation.
TOPCalChannelThresholdEff()
Default constructor.
ClassDef(TOPCalChannelThresholdEff, 3)
ClassDef.
void setUnusable(int moduleID, unsigned channel)
Switches calibration status to unusable to flag badly calibrated constant.
EStatus
Calibration status of a constant.
@ c_Calibrated
good calibrated value
@ c_Unusable
bad calibrated value
@ c_Default
uncalibrated default value
short m_offlineThreshold[c_numModules][c_numChannels]
threshold value used for efficiency evaluation
bool isDefault(int moduleID, unsigned channel) const
Returns calibration status.
@ c_numChannels
number of channels per module
@ c_numModules
number of modules
bool isUnusable(int moduleID, unsigned channel) const
Returns calibration status.
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...
Abstract base class for different kinds of events.