Belle II Software  release-08-01-10
TOPCalChannelRQE Class Reference

Class to store relative quantum efficiency of channels w.r.t initial one measured in PMT QA QE is expected to decrease during the experiment due to aging induced by acuumulated charge. More...

#include <TOPCalChannelRQE.h>

Inheritance diagram for TOPCalChannelRQE:
Collaboration diagram for TOPCalChannelRQE:

Public Types

enum  EStatus {
  c_Default = 0 ,
  c_Calibrated = 1 ,
  c_Unusable = 2
}
 Calibration status of a constant. More...
 

Public Member Functions

 TOPCalChannelRQE ()
 Default constructor.
 
void setRQE (int moduleID, unsigned channel, double relQE)
 Sets the relative QE for a single channel and switches status to calibrated. More...
 
void setUnusable (int moduleID, unsigned channel)
 Switches calibration status to unusable to flag badly calibrated constant. More...
 
double getRQE (int moduleID, unsigned channel) const
 Returns the relative QE for a single channel (1.0 if status is c_Default) More...
 
bool isCalibrated (int moduleID, unsigned channel) const
 Returns calibration status. More...
 
bool isDefault (int moduleID, unsigned channel) const
 Returns calibration status. More...
 
bool isUnusable (int moduleID, unsigned channel) const
 Returns calibration status. More...
 

Private Types

enum  {
  c_numModules = 16 ,
  c_numChannels = 512
}
 Sizes. More...
 

Private Member Functions

 ClassDef (TOPCalChannelRQE, 1)
 ClassDef.
 

Private Attributes

float m_relQE [c_numModules][c_numChannels] = {{0.0}}
 relative quantum efficiency
 
EStatus m_status [c_numModules][c_numChannels] = {{c_Default}}
 calibration status
 

Detailed Description

Class to store relative quantum efficiency of channels w.r.t initial one measured in PMT QA QE is expected to decrease during the experiment due to aging induced by acuumulated charge.

Definition at line 24 of file TOPCalChannelRQE.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private

Sizes.

Enumerator
c_numModules 

number of modules

c_numChannels 

number of channels per module

Definition at line 149 of file TOPCalChannelRQE.h.

149  {
150  c_numModules = 16,
151  c_numChannels = 512
152  };
@ c_numChannels
number of channels per module
@ c_numModules
number of modules

◆ EStatus

enum EStatus

Calibration status of a constant.

Enumerator
c_Default 

uncalibrated default value

c_Calibrated 

good calibrated value

c_Unusable 

bad calibrated value

Definition at line 30 of file TOPCalChannelRQE.h.

Member Function Documentation

◆ getRQE()

double getRQE ( int  moduleID,
unsigned  channel 
) const
inline

Returns the relative QE for a single channel (1.0 if status is c_Default)

Parameters
moduleIDmodule ID (1-based)
channelhardware channel number (0-based)
Returns
relative quantum efficieny (absolute value, not in %)

Definition at line 87 of file TOPCalChannelRQE.h.

◆ isCalibrated()

bool isCalibrated ( int  moduleID,
unsigned  channel 
) const
inline

Returns calibration status.

Parameters
moduleIDmodule ID (1-based)
channelhardware channel number (0-based)
Returns
true, if good calibrated

Definition at line 108 of file TOPCalChannelRQE.h.

◆ isDefault()

bool isDefault ( int  moduleID,
unsigned  channel 
) const
inline

Returns calibration status.

Parameters
moduleIDmodule ID (1-based)
channelhardware channel number (0-based)
Returns
true, if default (not calibrated)

Definition at line 122 of file TOPCalChannelRQE.h.

◆ isUnusable()

bool isUnusable ( int  moduleID,
unsigned  channel 
) const
inline

Returns calibration status.

Parameters
moduleIDmodule ID (1-based)
channelhardware channel number (0-based)
Returns
true, if bad calibrated

Definition at line 136 of file TOPCalChannelRQE.h.

◆ setRQE()

void setRQE ( int  moduleID,
unsigned  channel,
double  relQE 
)
inline

Sets the relative QE for a single channel and switches status to calibrated.

Parameters
moduleIDmodule ID (1-based)
channelhardware channel number (0-based)
relQErelative quantum efficiency w.r.t initial one (absolute value, not in %)

Definition at line 47 of file TOPCalChannelRQE.h.

◆ setUnusable()

void setUnusable ( int  moduleID,
unsigned  channel 
)
inline

Switches calibration status to unusable to flag badly calibrated constant.

Parameters
moduleIDmodule ID (1-based)
channelhardware channel number (0-based)

Definition at line 67 of file TOPCalChannelRQE.h.


The documentation for this class was generated from the following file: