Belle II Software  release-08-01-10
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 22 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 28 of file TOPASICGains.h.

28  {c_WindowSize = 64,
29  c_Unit = 0x1000
30  };
@ c_Unit
unit of fixed point number
Definition: TOPASICGains.h:29
@ c_WindowSize
number of samples
Definition: TOPASICGains.h:28

Constructor & Destructor Documentation

◆ TOPASICGains()

TOPASICGains ( unsigned short  asicWindow)
inlineexplicit

Constructor with ASIC window.

Parameters
asicWindowASIC window number

Definition at line 44 of file TOPASICGains.h.

Member Function Documentation

◆ getASICWindow()

unsigned getASICWindow ( ) const
inline

Return ASIC window number.

Returns
window number

Definition at line 62 of file TOPASICGains.h.

◆ getError()

float getError ( ) const
inline

Return gain uncertainly.

Returns
gain uncertainty

Definition at line 87 of file TOPASICGains.h.

◆ getSize()

unsigned getSize ( ) const
inline

Return window size (number of pedestal samples)

Returns
window size

Definition at line 68 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 75 of file TOPASICGains.h.


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