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

Pulse height parameterizations for all 512 channels of 16 modules. More...

#include <TOPCalChannelPulseHeight.h>

Inheritance diagram for TOPCalChannelPulseHeight:
Collaboration diagram for TOPCalChannelPulseHeight:

Public Types

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

Public Member Functions

 TOPCalChannelPulseHeight ()
 Default constructor.
 
void setParameters (int moduleID, unsigned channel, double x0, double p1, double p2)
 Sets calibration 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...
 
const TOPPulseHeightPargetParameters (int moduleID, unsigned channel) const
 Returns pulse height parameters for a given slot and 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 (TOPCalChannelPulseHeight, 3)
 ClassDef.
 

Private Attributes

TOPPulseHeightPar m_par [c_numModules][c_numChannels]
 calibration constants
 
EStatus m_status [c_numModules][c_numChannels] = {{c_Default}}
 calibration status
 

Detailed Description

Pulse height parameterizations for all 512 channels of 16 modules.

Parameterization is: P(x) = (x/x0)^p1 * exp(-(x/x0)^p2), x0 > 0, p1 >= 0, p2 > 0 From channel gain/efficiency calibration

Definition at line 26 of file TOPCalChannelPulseHeight.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 181 of file TOPCalChannelPulseHeight.h.

181  {
182  c_numModules = 16,
183  c_numChannels = 512
184  };
@ 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 32 of file TOPCalChannelPulseHeight.h.

Member Function Documentation

◆ getParameters()

const TOPPulseHeightPar& getParameters ( int  moduleID,
unsigned  channel 
) const
inline

Returns pulse height parameters for a given slot and channel.

Parameters
moduleIDmodule ID (1-based)
channelhardware channel number (0-based)
Returns
parameters of pulse heigth distribution

Definition at line 115 of file TOPCalChannelPulseHeight.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 139 of file TOPCalChannelPulseHeight.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 153 of file TOPCalChannelPulseHeight.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 167 of file TOPCalChannelPulseHeight.h.

◆ setParameters()

void setParameters ( int  moduleID,
unsigned  channel,
double  x0,
double  p1,
double  p2 
)
inline

Sets calibration for a single channel and switches status to calibrated.

Parameters
moduleIDmodule ID (1-based)
channelhardware channel number (0-based)
x0distribution parameter (x0 > 0)
p1distribution parameter (p1 >= 0)
p2distribution parameter (p2 > 0)

Definition at line 52 of file TOPCalChannelPulseHeight.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 95 of file TOPCalChannelPulseHeight.h.


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