Belle II Software  release-05-01-25
TOPCalChannelThreshold Class Reference

Value of the threshold (in ADC counts) used for the pulse identification, for all 512 channels of 16 modules. More...

#include <TOPCalChannelThreshold.h>

Inheritance diagram for TOPCalChannelThreshold:
Collaboration diagram for TOPCalChannelThreshold:

Public Types

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

Public Member Functions

 TOPCalChannelThreshold ()
 Default constructor.
 
void setThr (int moduleID, unsigned channel, short Thr)
 Sets the threshold (in ADC counts) 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...
 
short getThr (int moduleID, unsigned channel) const
 Returns the threshold (in ADC counts) of a single channel. 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 (TOPCalChannelThreshold, 2)
 ClassDef.
 

Private Attributes

short m_Thr [c_numModules][c_numChannels] = {{0}}
 threshold value in ADC counts. More...
 
EStatus m_status [c_numModules][c_numChannels] = {{c_Default}}
 calibration status
 

Detailed Description

Value of the threshold (in ADC counts) used for the pulse identification, for all 512 channels of 16 modules.

From laser scans.

Definition at line 35 of file TOPCalChannelThreshold.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 159 of file TOPCalChannelThreshold.h.

◆ 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 41 of file TOPCalChannelThreshold.h.

Member Function Documentation

◆ getThr()

short getThr ( int  moduleID,
unsigned  channel 
) const
inline

Returns the threshold (in ADC counts) of a single channel.

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

Definition at line 98 of file TOPCalChannelThreshold.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 118 of file TOPCalChannelThreshold.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 132 of file TOPCalChannelThreshold.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 146 of file TOPCalChannelThreshold.h.

◆ setThr()

void setThr ( int  moduleID,
unsigned  channel,
short  Thr 
)
inline

Sets the threshold (in ADC counts) for a single channel and switches status to calibrated.

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

Definition at line 58 of file TOPCalChannelThreshold.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 78 of file TOPCalChannelThreshold.h.

Member Data Documentation

◆ m_Thr

short m_Thr[c_numModules][c_numChannels] = {{0}}
private

threshold value in ADC counts.

0 by default

Definition at line 163 of file TOPCalChannelThreshold.h.


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