9#include <top/dbobjects/TOPASICGains.h>
10#include <framework/logging/Logger.h>
24 B2ERROR(
"TOPASICGains::setGains: vector with wrong number of elements");
29 float gain = gains[i] *
m_unit;
30 if (gain > 0 and (gain + 0.5) < 0x10000) {
unsigned short m_gains[c_WindowSize]
gains (in fixed point format)
@ c_WindowSize
number of samples
unsigned short m_gainError
gain error (fixed point format)
unsigned short m_unit
unit of fixed point number
bool setGains(const std::vector< float > &gains, float error=0)
Set gains.
Abstract base class for different kinds of events.