12 #include <framework/logging/Logger.h>
47 void setRQE(
int moduleID,
unsigned channel,
double relQE)
49 unsigned module = moduleID - 1;
51 B2ERROR(
"Invalid module number, constant not set (" << ClassName() <<
")");
55 B2ERROR(
"Invalid channel number, constant not set (" << ClassName() <<
")");
58 m_relQE[module][channel] = relQE;
69 unsigned module = moduleID - 1;
71 B2ERROR(
"Invalid module number, status not set (" << ClassName() <<
")");
75 B2ERROR(
"Invalid channel number, status not set (" << ClassName() <<
")");
87 double getRQE(
int moduleID,
unsigned channel)
const
89 unsigned module = moduleID - 1;
91 B2WARNING(
"Invalid module number, returning 0 (" << ClassName() <<
")");
95 B2WARNING(
"Invalid channel number, returning 0 (" << ClassName() <<
")");
99 return m_relQE[module][channel];
110 unsigned module = moduleID - 1;
124 unsigned module = moduleID - 1;
138 unsigned module = moduleID - 1;
Class to store relative quantum efficiency of channels w.r.t initial one measured in PMT QA QE is exp...
ClassDef(TOPCalChannelRQE, 1)
ClassDef.
bool isCalibrated(int moduleID, unsigned channel) const
Returns calibration status.
EStatus m_status[c_numModules][c_numChannels]
calibration status
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
double getRQE(int moduleID, unsigned channel) const
Returns the relative QE for a single channel (1.0 if status is c_Default)
bool isDefault(int moduleID, unsigned channel) const
Returns calibration status.
TOPCalChannelRQE()
Default constructor.
@ c_numChannels
number of channels per module
@ c_numModules
number of modules
void setRQE(int moduleID, unsigned channel, double relQE)
Sets the relative QE for a single channel and switches status to calibrated.
float m_relQE[c_numModules][c_numChannels]
relative quantum efficiency
bool isUnusable(int moduleID, unsigned channel) const
Returns calibration status.
Abstract base class for different kinds of events.