Project
Loading...
Searching...
No Matches
o2::fit::DataBlockBase< DataBlock, ConfigType, Header, DataStructures > Class Template Reference

#include <DataBlockBase.h>

Inherits boost::mpl::inherit::type.

Public Types

typedef DataBlock< ConfigType, Header, DataStructures... > DataBlock_t
 
typedef DataBlockWrapper< ConfigType, HeaderDataBlockWrapperHeader_t
 
typedef ConfigType Config_t
 
typedef DataBlock< typename Config_t::InvertedPadding_t, Header, DataStructures... > DataBlockInvertedPadding_t
 

Public Member Functions

 DataBlockBase ()=default
 
 DataBlockBase (const DataBlockBase &)=default
 
bool isOnlyHeader () const
 
void print () const
 
InteractionRecord getInteractionRecord () const
 
void setInteractionRecord (const InteractionRecord &intRec)
 
void decodeBlock (gsl::span< const uint8_t > payload, size_t srcPos)
 
bool isCorrect () const
 
void update ()
 

Static Public Member Functions

static void printLUT ()
 

Public Attributes

size_t mSize {0}
 
bool mIsCorrect {false}
 
RawDataMetric::Status_t mStatusBitsAll {}
 

Static Public Attributes

static constexpr bool sIsPadded = Config_t::sIsPadded
 
static constexpr std::size_t sHeaderSize = sizeof(Header)
 

Protected Member Functions

void isNonZeroBlockSizes (bool &flag, unsigned int nElements)
 
void checkDeserialization (bool &flag, bool isIncorrect)
 
void mergeStatusBits (uint8_t &statusBitsResult, uint8_t statusBits)
 

Detailed Description

template<template< typename... > class DataBlock, typename ConfigType, class Header, class... DataStructures>
class o2::fit::DataBlockBase< DataBlock, ConfigType, Header, DataStructures >

Definition at line 386 of file DataBlockBase.h.

Member Typedef Documentation

◆ Config_t

template<template< typename... > class DataBlock, typename ConfigType , class Header , class... DataStructures>
typedef ConfigType o2::fit::DataBlockBase< DataBlock, ConfigType, Header, DataStructures >::Config_t

Definition at line 395 of file DataBlockBase.h.

◆ DataBlock_t

template<template< typename... > class DataBlock, typename ConfigType , class Header , class... DataStructures>
typedef DataBlock<ConfigType, Header, DataStructures...> o2::fit::DataBlockBase< DataBlock, ConfigType, Header, DataStructures >::DataBlock_t

Definition at line 393 of file DataBlockBase.h.

◆ DataBlockInvertedPadding_t

template<template< typename... > class DataBlock, typename ConfigType , class Header , class... DataStructures>
typedef DataBlock<typename Config_t::InvertedPadding_t, Header, DataStructures...> o2::fit::DataBlockBase< DataBlock, ConfigType, Header, DataStructures >::DataBlockInvertedPadding_t

Definition at line 400 of file DataBlockBase.h.

◆ DataBlockWrapperHeader_t

template<template< typename... > class DataBlock, typename ConfigType , class Header , class... DataStructures>
typedef DataBlockWrapper<ConfigType, Header> o2::fit::DataBlockBase< DataBlock, ConfigType, Header, DataStructures >::DataBlockWrapperHeader_t

Definition at line 394 of file DataBlockBase.h.

Constructor & Destructor Documentation

◆ DataBlockBase() [1/2]

template<template< typename... > class DataBlock, typename ConfigType , class Header , class... DataStructures>
o2::fit::DataBlockBase< DataBlock, ConfigType, Header, DataStructures >::DataBlockBase ( )
default

◆ DataBlockBase() [2/2]

template<template< typename... > class DataBlock, typename ConfigType , class Header , class... DataStructures>
o2::fit::DataBlockBase< DataBlock, ConfigType, Header, DataStructures >::DataBlockBase ( const DataBlockBase< DataBlock, ConfigType, Header, DataStructures > &  )
default

Member Function Documentation

◆ checkDeserialization()

template<template< typename... > class DataBlock, typename ConfigType , class Header , class... DataStructures>
void o2::fit::DataBlockBase< DataBlock, ConfigType, Header, DataStructures >::checkDeserialization ( bool &  flag,
bool  isIncorrect 
)
inlineprotected

Definition at line 460 of file DataBlockBase.h.

◆ decodeBlock()

template<template< typename... > class DataBlock, typename ConfigType , class Header , class... DataStructures>
void o2::fit::DataBlockBase< DataBlock, ConfigType, Header, DataStructures >::decodeBlock ( gsl::span< const uint8_t >  payload,
size_t  srcPos 
)
inline

Definition at line 431 of file DataBlockBase.h.

◆ getInteractionRecord()

template<template< typename... > class DataBlock, typename ConfigType , class Header , class... DataStructures>
InteractionRecord o2::fit::DataBlockBase< DataBlock, ConfigType, Header, DataStructures >::getInteractionRecord ( ) const
inline

Definition at line 420 of file DataBlockBase.h.

◆ isCorrect()

template<template< typename... > class DataBlock, typename ConfigType , class Header , class... DataStructures>
bool o2::fit::DataBlockBase< DataBlock, ConfigType, Header, DataStructures >::isCorrect ( ) const
inline

Definition at line 441 of file DataBlockBase.h.

◆ isNonZeroBlockSizes()

template<template< typename... > class DataBlock, typename ConfigType , class Header , class... DataStructures>
void o2::fit::DataBlockBase< DataBlock, ConfigType, Header, DataStructures >::isNonZeroBlockSizes ( bool &  flag,
unsigned int  nElements 
)
inlineprotected

Definition at line 459 of file DataBlockBase.h.

◆ isOnlyHeader()

template<template< typename... > class DataBlock, typename ConfigType , class Header , class... DataStructures>
bool o2::fit::DataBlockBase< DataBlock, ConfigType, Header, DataStructures >::isOnlyHeader ( ) const
inline

Definition at line 402 of file DataBlockBase.h.

◆ mergeStatusBits()

template<template< typename... > class DataBlock, typename ConfigType , class Header , class... DataStructures>
void o2::fit::DataBlockBase< DataBlock, ConfigType, Header, DataStructures >::mergeStatusBits ( uint8_t &  statusBitsResult,
uint8_t  statusBits 
)
inlineprotected

Definition at line 461 of file DataBlockBase.h.

◆ print()

template<template< typename... > class DataBlock, typename ConfigType , class Header , class... DataStructures>
void o2::fit::DataBlockBase< DataBlock, ConfigType, Header, DataStructures >::print ( ) const
inline

Definition at line 412 of file DataBlockBase.h.

◆ printLUT()

template<template< typename... > class DataBlock, typename ConfigType , class Header , class... DataStructures>
static void o2::fit::DataBlockBase< DataBlock, ConfigType, Header, DataStructures >::printLUT ( )
inlinestatic

Definition at line 406 of file DataBlockBase.h.

◆ setInteractionRecord()

template<template< typename... > class DataBlock, typename ConfigType , class Header , class... DataStructures>
void o2::fit::DataBlockBase< DataBlock, ConfigType, Header, DataStructures >::setInteractionRecord ( const InteractionRecord intRec)
inline

Definition at line 425 of file DataBlockBase.h.

◆ update()

template<template< typename... > class DataBlock, typename ConfigType , class Header , class... DataStructures>
void o2::fit::DataBlockBase< DataBlock, ConfigType, Header, DataStructures >::update ( )
inline

Definition at line 443 of file DataBlockBase.h.

Member Data Documentation

◆ mIsCorrect

template<template< typename... > class DataBlock, typename ConfigType , class Header , class... DataStructures>
bool o2::fit::DataBlockBase< DataBlock, ConfigType, Header, DataStructures >::mIsCorrect {false}

Definition at line 454 of file DataBlockBase.h.

◆ mSize

template<template< typename... > class DataBlock, typename ConfigType , class Header , class... DataStructures>
size_t o2::fit::DataBlockBase< DataBlock, ConfigType, Header, DataStructures >::mSize {0}

Definition at line 453 of file DataBlockBase.h.

◆ mStatusBitsAll

template<template< typename... > class DataBlock, typename ConfigType , class Header , class... DataStructures>
RawDataMetric::Status_t o2::fit::DataBlockBase< DataBlock, ConfigType, Header, DataStructures >::mStatusBitsAll {}

Definition at line 455 of file DataBlockBase.h.

◆ sHeaderSize

template<template< typename... > class DataBlock, typename ConfigType , class Header , class... DataStructures>
constexpr std::size_t o2::fit::DataBlockBase< DataBlock, ConfigType, Header, DataStructures >::sHeaderSize = sizeof(Header)
staticconstexpr

Definition at line 401 of file DataBlockBase.h.

◆ sIsPadded

template<template< typename... > class DataBlock, typename ConfigType , class Header , class... DataStructures>
constexpr bool o2::fit::DataBlockBase< DataBlock, ConfigType, Header, DataStructures >::sIsPadded = Config_t::sIsPadded
staticconstexpr

Definition at line 396 of file DataBlockBase.h.


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