Calibration constants of a single ASIC window: gains.
More...
#include <TOPASICGains.h>
|
| 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.
|
|
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.
30 };
@ c_Unit
unit of fixed point number
@ c_WindowSize
number of samples
◆ TOPASICGains() [1/2]
Default constructor.
Definition at line 35 of file TOPASICGains.h.
36 {
38 }
unsigned short m_gains[c_WindowSize]
gains (in fixed point format)
unsigned short m_asicWindow
ASIC window number.
unsigned short m_gainError
gain error (fixed point format)
unsigned short m_unit
unit of fixed point number
◆ TOPASICGains() [2/2]
Constructor with ASIC window.
- Parameters
-
asicWindow | ASIC window number |
Definition at line 44 of file TOPASICGains.h.
◆ getASICWindow()
unsigned getASICWindow |
( |
| ) |
const |
|
inline |
Return ASIC window number.
- Returns
- window number
Definition at line 62 of file TOPASICGains.h.
◆ getError()
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
-
- Returns
- relative gain
Definition at line 75 of file TOPASICGains.h.
76 {
79 }
80 return 0;
81 }
◆ m_asicWindow
unsigned short m_asicWindow |
|
private |
◆ m_gainError
unsigned short m_gainError |
|
private |
◆ m_gains
◆ m_unit
The documentation for this class was generated from the following files: