21 unsigned int ilog2(
unsigned int v);
ECL waveform compression/decompression to/from the BitStream storage with the BASE algorithm.
void compress(BitStream &out, const int *adc) override
Compress the ECL waveform.
void uncompress(BitStream &out, int *adc) override
Decompress the ECL waveform.
Abstract class (interface) for ECL waveform compression/decompression to/from the BitStream storage.
virtual void uncompress(BitStream &in, int *adc)=0
Decompress the ECL waveform.
virtual void compress(BitStream &out, const int *adc)=0
Compress the ECL waveform.
virtual ~ECLCompress()
virtual destructure
ECL waveform compression/decompression to/from the BitStream storage based on the Discrete Cosine Tra...
const width_t * m_widths
Bit widths for the DCT coefficients for prefix encoding.
void compress(BitStream &out, const int *adc) override
function to compress
const double m_scale
Scale factor for quantization.
const double m_c0
Average waveform amplitude.
void uncompress(BitStream &in, int *adc) override
function to decompress
ECL waveform compression/decompression to/from the BitStream storage with the DELTA algorithm.
void compress(BitStream &out, const int *adc) override
function to compress the ECL waveform with the DELTA algorithm
void uncompress(BitStream &out, int *adc) override
function to decompress the ECL waveform with the DELTA algorithm
Abstract base class for different kinds of events.
Bit widths for the prefix coding to encode integers which are mainly concentrated around zero and pro...
unsigned char w0
Progressive bit width to encode an integer value.
unsigned char w2
Progressive bit width to encode an integer value.
unsigned char w1
Progressive bit width to encode an integer value.
unsigned char w3
Progressive bit width to encode an integer value.