Project
Loading...
Searching...
No Matches
o2::framework::DataRefUtils Struct Reference

#include <DataRefUtils.h>

Static Public Member Functions

template<typename T >
static auto as (DataRef const &ref)
 
static voiddecodeCCDB (DataRef const &ref, std::type_info const &info)
 
static std::map< std::string, std::string > extractCCDBHeaders (DataRef const &ref)
 
static std::span< const chargetCCDBPayloadBlob (DataRef const &ref)
 
static o2::header::DataHeader::PayloadSizeType getPayloadSize (const DataRef &ref)
 
template<typename T >
static auto getHeader (const DataRef &ref)
 
static bool isValid (DataRef const &ref)
 
static bool match (DataRef const &ref, const char *binding)
 
template<DataHeaderLike H>
static bool matchHeader (DataRef const &ref, InputSpec const &spec)
 
template<DataHeaderLike... H>
static bool match (DataRef const &ref, InputSpec const &spec)
 

Detailed Description

Definition at line 42 of file DataRefUtils.h.

Member Function Documentation

◆ as()

template<typename T >
static auto o2::framework::DataRefUtils::as ( DataRef const &  ref)
inlinestatic

Definition at line 45 of file DataRefUtils.h.

◆ decodeCCDB()

void * o2::framework::DataRefUtils::decodeCCDB ( DataRef const &  ref,
std::type_info const &  info 
)
static

Definition at line 79 of file DataRefUtils.cxx.

◆ extractCCDBHeaders()

std::map< std::string, std::string > o2::framework::DataRefUtils::extractCCDBHeaders ( DataRef const &  ref)
static

Definition at line 115 of file DataRefUtils.cxx.

◆ getCCDBPayloadBlob()

std::span< const char > o2::framework::DataRefUtils::getCCDBPayloadBlob ( DataRef const &  ref)
static

Return a span over the raw CCDB payload bytes, stripping the flattened HTTP headers footer that CCDBFetcherHelper appends. Use this when the CCDB entry is a binary blob rather than a ROOT-serialised object.

Definition at line 152 of file DataRefUtils.cxx.

◆ getHeader()

template<typename T >
static auto o2::framework::DataRefUtils::getHeader ( const DataRef ref)
inlinestatic

Definition at line 211 of file DataRefUtils.h.

◆ getPayloadSize()

static o2::header::DataHeader::PayloadSizeType o2::framework::DataRefUtils::getPayloadSize ( const DataRef ref)
inlinestatic

Definition at line 193 of file DataRefUtils.h.

◆ isValid()

static bool o2::framework::DataRefUtils::isValid ( DataRef const &  ref)
inlinestatic

Definition at line 219 of file DataRefUtils.h.

◆ match() [1/2]

static bool o2::framework::DataRefUtils::match ( DataRef const &  ref,
const char binding 
)
inlinestatic

check if the DataRef object matches a partcular binding Can be used to check if DataRef from the InputRecord iterator comes from a particular input.

Definition at line 227 of file DataRefUtils.h.

◆ match() [2/2]

template<DataHeaderLike... H>
static bool o2::framework::DataRefUtils::match ( DataRef const &  ref,
InputSpec const &  spec 
)
inlinestatic

check if the O2 message referred by DataRef matches a particular input spec. The DataHeader is retrieved from the header message and matched against spec parameter.

Definition at line 246 of file DataRefUtils.h.

◆ matchHeader()

template<DataHeaderLike H>
static bool o2::framework::DataRefUtils::matchHeader ( DataRef const &  ref,
InputSpec const &  spec 
)
inlinestatic

Definition at line 233 of file DataRefUtils.h.


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