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

Class to store integrated charge per channel. More...

#include <TOPCalIntegratedCharge.h>

Inheritance diagram for TOPCalIntegratedCharge:
Collaboration diagram for TOPCalIntegratedCharge:

Public Types

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

Public Member Functions

 TOPCalIntegratedCharge ()
 Default constructor.
 
void setCharge (int moduleID, unsigned channel, double charge)
 Sets the integrated charge 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 getCharge (int moduleID, unsigned channel) const
 Returns the integrated charge 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 (TOPCalIntegratedCharge, 1)
 ClassDef.
 

Private Attributes

float m_charge [c_numModules][c_numChannels] = {{0}}
 integrated charge [C/cm^2]
 
EStatus m_status [c_numModules][c_numChannels] = {{c_Default}}
 calibration status
 

Detailed Description

Class to store integrated charge per channel.

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

147  {
148  c_numModules = 16,
149  c_numChannels = 512
150  };
@ c_numChannels
number of channels 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 TOPCalIntegratedCharge.h.

Member Function Documentation

◆ getCharge()

double getCharge ( int  moduleID,
unsigned  channel 
) const
inline

Returns the integrated charge of a single channel.

Parameters
moduleIDmodule ID (1-based)
channelhardware channel number (0-based)
Returns
integrated charge [C/cm^2]

Definition at line 86 of file TOPCalIntegratedCharge.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 106 of file TOPCalIntegratedCharge.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 120 of file TOPCalIntegratedCharge.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 134 of file TOPCalIntegratedCharge.h.

◆ setCharge()

void setCharge ( int  moduleID,
unsigned  channel,
double  charge 
)
inline

Sets the integrated charge for a single channel and switches status to calibrated.

Parameters
moduleIDmodule ID (1-based)
channelhardware channel number (0-based)
chargeintegrated charge in Coulombs per cm^2

Definition at line 46 of file TOPCalIntegratedCharge.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 66 of file TOPCalIntegratedCharge.h.


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