Belle II Software development
TOPCalModuleT0 Class Reference

Module T0 calibration constants for all 16 modules. More...

#include <TOPCalModuleT0.h>

Inheritance diagram for TOPCalModuleT0:

Public Types

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

Public Member Functions

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

Private Types

enum  { c_numModules = 16 }
 Sizes. More...
 

Private Member Functions

 ClassDef (TOPCalModuleT0, 3)
 ClassDef.
 

Private Attributes

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

Detailed Description

Module T0 calibration constants for all 16 modules.

From module alignment.

Definition at line 23 of file TOPCalModuleT0.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private

Sizes.

Enumerator
c_numModules 

number of modules

Definition at line 101 of file TOPCalModuleT0.h.

101 {c_numModules = 16,
102 };
@ 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 TOPCalModuleT0.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

◆ TOPCalModuleT0()

TOPCalModuleT0 ( )
inline

Default constructor.

Definition at line 38 of file TOPCalModuleT0.h.

39 {}

Member Data Documentation

◆ m_errT0

float m_errT0[c_numModules] = {0}
private

errors on constants

Definition at line 105 of file TOPCalModuleT0.h.

◆ m_status

EStatus m_status[c_numModules] = {c_Default}
private

calibration status

Definition at line 106 of file TOPCalModuleT0.h.

◆ m_T0

float m_T0[c_numModules] = {0}
private

calibration constants

Definition at line 104 of file TOPCalModuleT0.h.


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