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

Calibration constants of a single ASIC window: gains. More...

#include <TOPASICGains.h>

Inheritance diagram for TOPASICGains:
Collaboration diagram for TOPASICGains:

Public Types

enum  {
  c_WindowSize = 64,
  c_Unit = 0x1000
}
 Various constants. More...
 

Public Member Functions

 TOPASICGains ()
 Default constructor.
 
 TOPASICGains (unsigned short asicWindow)
 Constructor with ASIC window. More...
 
bool setGains (const std::vector< float > &gains, float error=0)
 Set gains. More...
 
unsigned getASICWindow () const
 Return ASIC window number. More...
 
unsigned getSize () const
 Return window size (number of pedestal samples) More...
 
float getValue (unsigned i) const
 Return relative gain for i-th sample. More...
 
float getError () const
 Return gain uncertainly. More...
 

Private Member Functions

 ClassDef (TOPASICGains, 1)
 ClassDef.
 

Private Attributes

unsigned short m_asicWindow
 ASIC window number.
 
unsigned short m_unit
 unit of fixed point number
 
unsigned short m_gainError
 gain error (fixed point format)
 
unsigned short m_gains [c_WindowSize]
 gains (in fixed point format)
 

Detailed Description

Calibration constants of a single ASIC window: gains.

Definition at line 32 of file TOPASICGains.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Various constants.

Enumerator
c_WindowSize 

number of samples

c_Unit 

unit of fixed point number

Definition at line 38 of file TOPASICGains.h.

38  {
39  for (unsigned i = 0; i < c_WindowSize; i++) m_gains[i] = c_Unit;
40  }

Constructor & Destructor Documentation

◆ TOPASICGains()

TOPASICGains ( unsigned short  asicWindow)
inlineexplicit

Constructor with ASIC window.

Parameters
asicWindowASIC window number

Definition at line 54 of file TOPASICGains.h.

Member Function Documentation

◆ getASICWindow()

unsigned getASICWindow ( ) const
inline

Return ASIC window number.

Returns
window number

Definition at line 72 of file TOPASICGains.h.

◆ getError()

float getError ( ) const
inline

Return gain uncertainly.

Returns
gain uncertainty

Definition at line 97 of file TOPASICGains.h.

◆ getSize()

unsigned getSize ( ) const
inline

Return window size (number of pedestal samples)

Returns
window size

Definition at line 78 of file TOPASICGains.h.

◆ getValue()

float getValue ( unsigned  i) const
inline

Return relative gain for i-th sample.

Parameters
isample number
Returns
relative gain

Definition at line 85 of file TOPASICGains.h.


The documentation for this class was generated from the following files:
Belle2::TOPASICGains::c_WindowSize
@ c_WindowSize
number of samples
Definition: TOPASICGains.h:38
Belle2::TOPASICGains::c_Unit
@ c_Unit
unit of fixed point number
Definition: TOPASICGains.h:39
Belle2::TOPASICGains::m_gains
unsigned short m_gains[c_WindowSize]
gains (in fixed point format)
Definition: TOPASICGains.h:108