![]() |
Project
|
#include <CMVContainer.h>
Public Member Functions | |
| void | decompress (CMVPerTF *cmv) const |
| Restore a CMVPerTF from this compressed object into *cmv (must not be null) | |
| std::unique_ptr< TTree > | toTTree () const |
| Serialise into a TTree; each Fill() call appends one entry (one TF) | |
Public Attributes | |
| uint32_t | firstOrbit {0} |
| First orbit of this TF. | |
| uint16_t | firstBC {0} |
| First bunch crossing of this TF. | |
| uint8_t | mFlags {0} |
| Bitmask of CMVEncoding values. | |
| std::vector< uint8_t > | mData |
| Encoded payload. | |
Single compressed representation for one TF across all CRUs, stored in a TTree mFlags is a bitmask of CMVEncoding values that fully describes the encoding pipeline mData holds the encoded payload whose binary layout depends on mFlags:
Dense path (!kSparse): kZigzag absent → N × uint16_t LE (raw values, CRU-major order) kZigzag + kVarint → N × varint(zigzag(delta(signed(raw)))) kZigzag + kHuffman → [Huffman table] + [bitstream] of zigzag(delta(signed(raw)))
Sparse path (kSparse): 4 bytes LE uint32_t : posStreamSize posStream: for each CRU: varint(N), N × varint(tb_delta) valStream (one entry per non-zero): default → uint16_t LE raw value kZigzag + kVarint → varint(zigzag(signed(raw))) kZigzag + kHuffman → [Huffman table] + [bitstream] of zigzag(signed(raw))
Definition at line 60 of file CMVContainer.h.
Restore a CMVPerTF from this compressed object into *cmv (must not be null)
Definition at line 658 of file CMVContainer.cxx.
| std::unique_ptr< TTree > o2::tpc::CMVPerTFCompressed::toTTree | ( | ) | const |
Serialise into a TTree; each Fill() call appends one entry (one TF)
Definition at line 705 of file CMVContainer.cxx.
| uint16_t o2::tpc::CMVPerTFCompressed::firstBC {0} |
First bunch crossing of this TF.
Definition at line 62 of file CMVContainer.h.
| uint32_t o2::tpc::CMVPerTFCompressed::firstOrbit {0} |
First orbit of this TF.
Definition at line 61 of file CMVContainer.h.
| std::vector<uint8_t> o2::tpc::CMVPerTFCompressed::mData |
Encoded payload.
Definition at line 65 of file CMVContainer.h.
| uint8_t o2::tpc::CMVPerTFCompressed::mFlags {0} |
Bitmask of CMVEncoding values.
Definition at line 63 of file CMVContainer.h.