Belle II Software development
TOPCalAsicShift Class Reference

Calibration constants for ASIC shifts of all 16 modules. More...

#include <TOPCalAsicShift.h>

Inheritance diagram for TOPCalAsicShift:

Public Types

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

Public Member Functions

 TOPCalAsicShift ()
 Default constructor.
 
void setT0 (int moduleID, unsigned asic, double T0)
 Sets calibration for a single ASIC and switches status to calibrated.
 
void setUnusable (int moduleID, unsigned asic)
 Switches calibration status to unusable to flag badly calibrated constant.
 
double getT0 (int moduleID, unsigned asic) const
 Returns T0 of a single asic.
 
bool isCalibrated (int moduleID, unsigned asic) const
 Returns calibration status.
 
bool isDefault (int moduleID, unsigned asic) const
 Returns calibration status.
 
bool isUnusable (int moduleID, unsigned asic) const
 Returns calibration status.
 

Private Types

enum  {
  c_numModules = 16 ,
  c_numAsics = 64
}
 Sizes. More...
 

Private Member Functions

 ClassDef (TOPCalAsicShift, 1)
 ClassDef.
 

Private Attributes

float m_T0 [c_numModules][c_numAsics] = {{0}}
 calibration constants
 
EStatus m_status [c_numModules][c_numAsics] = {{c_Default}}
 calibration status
 

Detailed Description

Calibration constants for ASIC shifts of all 16 modules.

These are discrete shifts, usually in steps of a system clock (roughly 8 ns).

Definition at line 23 of file TOPCalAsicShift.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private

Sizes.

Enumerator
c_numModules 

number of modules

c_numAsics 

number of ASIC's per module

Definition at line 94 of file TOPCalAsicShift.h.

94 {c_numModules = 16,
95 c_numAsics = 64
96 };
@ c_numModules
number of modules
@ c_numAsics
number of ASIC's per module

◆ 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 TOPCalAsicShift.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

◆ TOPCalAsicShift()

TOPCalAsicShift ( )
inline

Default constructor.

Definition at line 39 of file TOPCalAsicShift.h.

40 {}

Member Data Documentation

◆ m_status

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

calibration status

Definition at line 99 of file TOPCalAsicShift.h.

◆ m_T0

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

calibration constants

Definition at line 98 of file TOPCalAsicShift.h.


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