Project
Loading...
Searching...
No Matches
o2::tpc::CMVPerTFCompressed Struct Reference

#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.
 

Detailed Description

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.

Member Function Documentation

◆ decompress()

void o2::tpc::CMVPerTFCompressed::decompress ( CMVPerTF cmv) const

Restore a CMVPerTF from this compressed object into *cmv (must not be null)

Definition at line 658 of file CMVContainer.cxx.

◆ toTTree()

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.

Member Data Documentation

◆ firstBC

uint16_t o2::tpc::CMVPerTFCompressed::firstBC {0}

First bunch crossing of this TF.

Definition at line 62 of file CMVContainer.h.

◆ firstOrbit

uint32_t o2::tpc::CMVPerTFCompressed::firstOrbit {0}

First orbit of this TF.

Definition at line 61 of file CMVContainer.h.

◆ mData

std::vector<uint8_t> o2::tpc::CMVPerTFCompressed::mData

Encoded payload.

Definition at line 65 of file CMVContainer.h.

◆ mFlags

uint8_t o2::tpc::CMVPerTFCompressed::mFlags {0}

Bitmask of CMVEncoding values.

Definition at line 63 of file CMVContainer.h.


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