18#ifndef GPUCA_STANDALONE
34 for (
unsigned int i = 0;
i <
sizeof(cp) /
sizeof(
size_t);
i++) {
35 reinterpret_cast<void**
>(&cp)[
i] =
reinterpret_cast<void*
>(
reinterpret_cast<const size_t*
>(&
offsets)[
i] +
reinterpret_cast<size_t>(&
c));
45 for (
unsigned int i = 0;
i <
sizeof(
offsets) /
sizeof(
size_t);
i++) {
46 reinterpret_cast<size_t*
>(&
offsets)[
i] = (
reinterpret_cast<const size_t*
>(&ptrs)[
i] -
reinterpret_cast<size_t>(
this));
54 memset((
void*)
this, 0,
sizeof(*
this));
78#ifndef GPUCA_STANDALONE
79void CompressedClustersROOT::Streamer(TBuffer& R__b)
82 if (R__b.IsReading()) {
83 R__b.ReadClassBuffer(CompressedClustersROOT::Class(),
this);
96 bool isflat = this->flatdata !=
nullptr;
102 R__b.WriteClassBuffer(CompressedClustersROOT::Class(),
this);
105 this->flatdata =
nullptr;
Helper for the CompressedClusters container.
Container to store compressed TPC cluster data.
GLuint GLsizei const GLuint const GLintptr * offsets
Global TPC definitions and constants.
unsigned int nUnattachedClusters
unsigned int nAttachedClusters
unsigned int nAttachedClustersReduced
void setForward(const CompressedClusters *p)
const CompressedClusters * ptrForward
void set(size_t bufferSize, const CompressedClusters &v)
static size_t flattenTo(ContainerType &container, CompressedClustersROOT &clusters)
static size_t restoreFrom(ContainerType &container, CompressedClustersROOT &clusters)
Restore the array pointers from the data in the container.
unsigned char * sigmaPadA
unsigned short * padDiffU
unsigned char * sigmaPadU
unsigned char * sigmaTimeU
unsigned char * sigmaTimeA
unsigned char * sliceLegDiffA
CompressedClusters()=default
std::vector< o2::mch::ChannelCode > cc
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"