Belle II Software  release-08-01-10
ECLDCTCompress Class Reference

ECL waveform compression/decompression to/from the BitStream storage based on the Discrete Cosine Transform (DCT) More...

#include <ECLCompress.h>

Inheritance diagram for ECLDCTCompress:
Collaboration diagram for ECLDCTCompress:

Public Member Functions

 ECLDCTCompress (double scale, double c0, width_t *w)
 Constructor for DCT based compression algorithm. More...
 
void compress (BitStream &out, const int *adc) override
 function to compress
 
void uncompress (BitStream &in, int *adc) override
 function to decompress
 

Protected Attributes

const double m_scale
 Scale factor for quantization.
 
const double m_c0
 Average waveform amplitude.
 
const width_tm_widths
 Bit widths for the DCT coefficients for prefix encoding.
 

Detailed Description

ECL waveform compression/decompression to/from the BitStream storage based on the Discrete Cosine Transform (DCT)

Definition at line 84 of file ECLCompress.h.

Constructor & Destructor Documentation

◆ ECLDCTCompress()

ECLDCTCompress ( double  scale,
double  c0,
width_t w 
)

Constructor for DCT based compression algorithm.

Parameters
scalescale factor for quantization.
c0average waveform amplitude.
wDCT coefficient probability density based bit widths for quantized coefficients

Definition at line 241 of file ECLCompress.cc.


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