Belle II Software  release-06-01-15
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
 Compress the ECL waveform. More...
 
void uncompress (BitStream &out, int *adc) override
 Decompress the ECL waveform. More...
 

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 146 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. @w DCT coefficient probability density based bit widths for quantized coefficients

Definition at line 238 of file ECLCompress.cc.

Member Function Documentation

◆ compress()

void compress ( BitStream out,
const int *  adc 
)
overridevirtual

Compress the ECL waveform.

Parameters
out– where we stream the compressed data
adc– the waveform to compress

Implements ECLCompress.

Definition at line 240 of file ECLCompress.cc.

◆ uncompress()

void uncompress ( BitStream in,
int *  adc 
)
overridevirtual

Decompress the ECL waveform.

Parameters
in– the stream from which we fetch the compressed data
adc– the decompressed waveform

Implements ECLCompress.

Definition at line 258 of file ECLCompress.cc.


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