Belle II Software development
TOPCalChannelT0 Class Reference

Channel T0 calibration constants for all 512 channels of 16 modules. More...

#include <TOPCalChannelT0.h>

Inheritance diagram for TOPCalChannelT0:

Public Types

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

Public Member Functions

 TOPCalChannelT0 ()
 Default constructor.
 
void setT0 (int moduleID, unsigned channel, double T0, double errT0)
 Sets calibration for a single channel and switches status to calibrated.
 
void setUnusable (int moduleID, unsigned channel)
 Switches calibration status to unusable to flag badly calibrated constant.
 
void suppressAverage ()
 Subtracts arithmetic average of a module from constants whose status is not c_Default.
 
double getT0 (int moduleID, unsigned channel) const
 Returns T0 of a single channel.
 
double getT0Error (int moduleID, unsigned channel) const
 Returns error on T0 of a single channel.
 
bool isCalibrated (int moduleID, unsigned channel) const
 Returns calibration status.
 
bool isDefault (int moduleID, unsigned channel) const
 Returns calibration status.
 
bool isUnusable (int moduleID, unsigned channel) const
 Returns calibration status.
 

Private Types

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

Private Member Functions

 ClassDef (TOPCalChannelT0, 3)
 ClassDef.
 

Private Attributes

float m_T0 [c_numModules][c_numChannels] = {{0}}
 calibration constants
 
float m_errT0 [c_numModules][c_numChannels] = {{0}}
 errors on constants
 
EStatus m_status [c_numModules][c_numChannels] = {{c_Default}}
 calibration status
 

Detailed Description

Channel T0 calibration constants for all 512 channels of 16 modules.

From calibration with laser system.

Definition at line 23 of file TOPCalChannelT0.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 109 of file TOPCalChannelT0.h.

109 {c_numModules = 16,
110 c_numChannels = 512
111 };
@ 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 29 of file TOPCalChannelT0.h.

29 {
30 c_Default = 0,
31 c_Calibrated = 1,
32 c_Unusable = 2
33 };
@ c_Calibrated
good calibrated value
@ c_Unusable
bad calibrated value
@ c_Default
uncalibrated default value

Constructor & Destructor Documentation

◆ TOPCalChannelT0()

TOPCalChannelT0 ( )
inline

Default constructor.

Definition at line 39 of file TOPCalChannelT0.h.

40 {}

Member Data Documentation

◆ m_errT0

float m_errT0[c_numModules][c_numChannels] = {{0}}
private

errors on constants

Definition at line 114 of file TOPCalChannelT0.h.

◆ m_status

EStatus m_status[c_numModules][c_numChannels] = {{c_Default}}
private

calibration status

Definition at line 115 of file TOPCalChannelT0.h.

◆ m_T0

float m_T0[c_numModules][c_numChannels] = {{0}}
private

calibration constants

Definition at line 113 of file TOPCalChannelT0.h.


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