 |
Belle II Software
release-05-01-25
|
14 #include <framework/logging/Logger.h>
26 class TOPCalChannelRQE:
public TObject {
49 void setRQE(
int moduleID,
unsigned channel,
double relQE)
51 unsigned module = moduleID - 1;
53 B2ERROR(
"Invalid module number, constant not set (" << ClassName() <<
")");
57 B2ERROR(
"Invalid channel number, constant not set (" << ClassName() <<
")");
60 m_relQE[module][channel] = relQE;
71 unsigned module = moduleID - 1;
73 B2ERROR(
"Invalid module number, status not set (" << ClassName() <<
")");
77 B2ERROR(
"Invalid channel number, status not set (" << ClassName() <<
")");
89 double getRQE(
int moduleID,
unsigned channel)
const
91 unsigned module = moduleID - 1;
93 B2WARNING(
"Invalid module number, returning 0 (" << ClassName() <<
")");
97 B2WARNING(
"Invalid channel number, returning 0 (" << ClassName() <<
")");
101 return m_relQE[module][channel];
112 unsigned module = moduleID - 1;
124 bool isDefault(
int moduleID,
unsigned channel)
const
126 unsigned module = moduleID - 1;
138 bool isUnusable(
int moduleID,
unsigned channel)
const
140 unsigned module = moduleID - 1;
void setUnusable(int moduleID, unsigned channel)
Switches calibration status to unusable to flag badly calibrated constant.
TOPCalChannelRQE()
Default constructor.
float m_relQE[c_numModules][c_numChannels]
relative quantum efficiency
EStatus
Calibration status of a constant.
bool isCalibrated(int moduleID, unsigned channel) const
Returns calibration status.
bool isUnusable(int moduleID, unsigned channel) const
Returns calibration status.
@ c_numModules
number of modules
@ c_Calibrated
good calibrated value
void setRQE(int moduleID, unsigned channel, double relQE)
Sets the relative QE for a single channel and switches status to calibrated.
Abstract base class for different kinds of events.
bool isDefault(int moduleID, unsigned channel) const
Returns calibration status.
@ c_Default
uncalibrated default value
@ c_numChannels
number of channels per module
@ c_Unusable
bad calibrated value
ClassDef(TOPCalChannelRQE, 1)
ClassDef.
EStatus m_status[c_numModules][c_numChannels]
calibration status
double getRQE(int moduleID, unsigned channel) const
Returns the relative QE for a single channel (1.0 if status is c_Default)
Class to store relative quantum efficiency of channels w.r.t initial one measured in PMT QA QE is exp...