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

#include <CCDBHelpers.h>

Classes

struct  ParserResult
 

Static Public Member Functions

static AlgorithmSpec fetchFromCCDB ()
 
static ParserResult parseRemappings (char const *)
 
static DataAllocator::CacheId adoptAndReplaceCachedMessage (DataAllocator &allocator, std::unordered_map< std::string, DataAllocator::CacheId > const &cache, std::string const &path, Output const &output, o2::pmr::vector< char > &&v, o2::header::SerializationMethod method)
 

Detailed Description

Definition at line 25 of file CCDBHelpers.h.

Member Function Documentation

◆ adoptAndReplaceCachedMessage()

DataAllocator::CacheId o2::framework::CCDBHelpers::adoptAndReplaceCachedMessage ( DataAllocator allocator,
std::unordered_map< std::string, DataAllocator::CacheId > const &  cache,
std::string const &  path,
Output const &  output,
o2::pmr::vector< char > &&  v,
o2::header::SerializationMethod  method 
)
static

Adopt a freshly-fetched CCDB payload as a new SHM message and prune the previously cached one for this path. The new SHM message is adopted BEFORE the old cached one is pruned allocator producer-device DPL DataAllocator cache read-only view of the producer-local path -> CacheId map; path CCDB path output DPL Output matcher v freshly-fetched CCDB payload; consumed by the call, leaving v empty method serialization-method tag written into the message header

Returns
the new CacheId; the caller must record it in its map

Definition at line 252 of file CCDBHelpers.cxx.

◆ fetchFromCCDB()

AlgorithmSpec o2::framework::CCDBHelpers::fetchFromCCDB ( )
static

Add a callback on stop which dumps the statistics for the caching per path

Definition at line 402 of file CCDBHelpers.cxx.

◆ parseRemappings()

CCDBHelpers::ParserResult o2::framework::CCDBHelpers::parseRemappings ( char const *  str)
static

Definition at line 95 of file CCDBHelpers.cxx.


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