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

#include <CompressedClustersHelpers.h>

Static Public Member Functions

template<typename Op , typename BufferType >
static size_t apply (Op op, BufferType &ptr, CompressedClustersROOT &c)
 
template<typename ContainerType >
static size_t flattenTo (ContainerType &container, CompressedClustersROOT &clusters)
 
template<typename ContainerType >
static size_t restoreFrom (ContainerType &container, CompressedClustersROOT &clusters)
 Restore the array pointers from the data in the container.
 

Detailed Description

Definition at line 30 of file CompressedClustersHelpers.h.

Member Function Documentation

◆ apply()

template<typename Op , typename BufferType >
static size_t o2::tpc::CompressedClustersHelpers::apply ( Op  op,
BufferType &  ptr,
CompressedClustersROOT c 
)
inlinestatic

Apply an operation to the layout of the class This method is the single place defining the mapping of the class layout to an underlying buffer for the flatten/restore functionality

Parameters
opthe operation to be applied, e.g. calculate raw buffer size, copy to and restore from buffer
ptrbuffer pointer, passed onto to operation
countersthe counters object CompressedClustersCounters

Definition at line 39 of file CompressedClustersHelpers.h.

◆ flattenTo()

template<typename ContainerType >
static size_t o2::tpc::CompressedClustersHelpers::flattenTo ( ContainerType &  container,
CompressedClustersROOT clusters 
)
inlinestatic

Create a flat copy of the class The target container is resized accordingly

Definition at line 53 of file CompressedClustersHelpers.h.

◆ restoreFrom()

template<typename ContainerType >
static size_t o2::tpc::CompressedClustersHelpers::restoreFrom ( ContainerType &  container,
CompressedClustersROOT clusters 
)
inlinestatic

Restore the array pointers from the data in the container.

Definition at line 69 of file CompressedClustersHelpers.h.


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