Classes | |
class | BeamInfo |
class | CaloRawDigit |
class | RawDigit |
Collection of charge vs time digitized from a single readout channel. More... | |
class | Trigger |
Typedefs | |
typedef long long int | CellID_t |
typedef uint32_t | Channel_t |
typedef short | ADC_t |
typedef std::vector< ADC_t > | ADCvector_t |
typedef enum gar::raw::_compress | Compress_t |
Enumerations | |
enum | _compress { kNone, kHuffman, kZeroSuppression, kZeroHuffman, kDynamicDec } |
typedef short gar::raw::ADC_t |
Definition at line 12 of file RawTypes.h.
typedef std::vector<ADC_t> gar::raw::ADCvector_t |
Definition at line 13 of file RawTypes.h.
typedef long long int gar::raw::CellID_t |
Definition at line 24 of file CaloRawDigit.h.
typedef uint32_t gar::raw::Channel_t |
Definition at line 35 of file RawDigit.h.
typedef enum gar::raw::_compress gar::raw::Compress_t |
enum gar::raw::_compress |
Enumerator | |
---|---|
kNone |
no compression |
kHuffman |
Huffman Encoding. |
kZeroSuppression |
Zero Suppression algorithm. |
kZeroHuffman |
Zero Suppression followed by Huffman Encoding. |
kDynamicDec |
Dynamic decimation. |
Definition at line 15 of file RawTypes.h.
void gar::raw::Compress | ( | gar::raw::ADCvector_t & | adc, |
gar::raw::Compress_t | compress | ||
) |
In-place compression of raw data buffer.
adc | buffer with uncompressed data |
compress | type of compression to be applied |
This function dispatches the compression to the function appropriate for the specified compression type. The resulting compressed data replaces the input buffer content, which is lost. Compression is expected to reduce the size of the data, so that there is in principle no need for reallocation of the input buffer, adc, to store the result.
Definition at line 23 of file raw.cxx.
int gar::raw::Compress | ( | gar::raw::ADCvector_t & | adc, |
gar::raw::Compress_t | compress, | ||
gar::raw::ADC_t | zerothreshold, | ||
size_t | ticksbefore, | ||
size_t | ticksafter | ||
) |
Definition at line 39 of file raw.cxx.
void gar::raw::CompressHuffman | ( | gar::raw::ADCvector_t & | adc | ) |
std::ostream& gar::raw::operator<< | ( | std::ostream & | os, |
const raw::BeamInfo & | o | ||
) |
Definition at line 122 of file BeamInfo.cxx.
void gar::raw::Uncompress | ( | const gar::raw::ADCvector_t & | adc, |
gar::raw::ADCvector_t & | uncompressed, | ||
gar::raw::Compress_t | compress | ||
) |
Uncompresses a raw data buffer.
adc | compressed buffer |
uncompressed | buffer to be filled with uncompressed data |
compress | type of compression in the adc buffer |
This function dispatches the uncompression to the correct uncompress function according to compression type in compress.
The uncompressed buffer must be already allocated with enough space to store the full inflated adc data. Uncompressing raw::RawDigit can be done as follows:
ADCvector_t uncompressed(digit.Samples(), 0); raw::Uncompress(digit.ADC(), uncompressed, digit.ADC());
Definition at line 183 of file raw.cxx.
void gar::raw::Uncompress | ( | const gar::raw::ADCvector_t & | adc, |
gar::raw::ADCvector_t & | uncompressed, | ||
ADC_t | pedestal, | ||
gar::raw::Compress_t | compress | ||
) |
Definition at line 202 of file raw.cxx.
void gar::raw::UncompressHuffman | ( | const gar::raw::ADCvector_t & | adc, |
gar::raw::ADCvector_t & | uncompressed | ||
) |
Definition at line 453 of file raw.cxx.
int gar::raw::ZeroSuppression | ( | gar::raw::ADCvector_t & | adc, |
gar::raw::ADC_t | zerothreshold, | ||
size_t | ticksbefore_in, | ||
size_t | ticksafter_in | ||
) |
void gar::raw::ZeroUnsuppression | ( | const gar::raw::ADCvector_t & | adc, |
gar::raw::ADCvector_t & | uncompressed | ||
) |
void gar::raw::ZeroUnsuppression | ( | const gar::raw::ADCvector_t & | adc, |
gar::raw::ADCvector_t & | uncompressed, | ||
gar::raw::ADC_t | pedestal | ||
) |