Calibration constants of a single ASIC window: gains. More...
#include <TOPASICGains.h>
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. | |
bool | setGains (const std::vector< float > &gains, float error=0) |
Set gains. | |
unsigned | getASICWindow () const |
Return ASIC window number. | |
unsigned | getSize () const |
Return window size (number of pedestal samples) | |
float | getValue (unsigned i) const |
Return relative gain for i-th sample. | |
float | getError () const |
Return gain uncertainly. | |
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) | |
Calibration constants of a single ASIC window: gains.
Definition at line 22 of file TOPASICGains.h.
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.
|
inline |
Default constructor.
Definition at line 35 of file TOPASICGains.h.
|
inlineexplicit |
Constructor with ASIC window.
asicWindow | ASIC window number |
Definition at line 44 of file TOPASICGains.h.
|
inline |
Return ASIC window number.
Definition at line 62 of file TOPASICGains.h.
|
inline |
Return gain uncertainly.
Definition at line 87 of file TOPASICGains.h.
|
inline |
Return window size (number of pedestal samples)
Definition at line 68 of file TOPASICGains.h.
|
inline |
Return relative gain for i-th sample.
i | sample number |
Definition at line 75 of file TOPASICGains.h.
|
private |
ASIC window number.
Definition at line 95 of file TOPASICGains.h.
|
private |
gain error (fixed point format)
Definition at line 97 of file TOPASICGains.h.
|
private |
gains (in fixed point format)
Definition at line 98 of file TOPASICGains.h.
|
private |
unit of fixed point number
Definition at line 96 of file TOPASICGains.h.