Project
Loading...
Searching...
No Matches
o2::mergers::object_store_helpers Namespace Reference

Classes

struct  Snapshoter
 
struct  Snapshoter< VectorOfTObjectPtrs >
 

Functions

ObjectStore extractObjectFrom (const framework::DataRef &ref)
 Takes a DataRef, deserializes it (if type is supported) and puts into an ObjectStore.
 
VectorOfRawTObjects toRawObserverPointers (const VectorOfTObjectPtrs &)
 Helper function that converts vector of smart pointers to the vector of raw pointers that is serializable. Make sure that original vector lives longer than the observer vector to avoid undefined behavior.
 
bool snapshot (framework::DataAllocator &allocator, const header::DataHeader::SubSpecificationType subSpec, const ObjectStore &mergedObject)
 Used in FullHistorMerger's and IntegratingMerger's publish function. Checks mergedObject for every state that is NOT monostate and creates snapshot of underlying object to the framework.
 
void * readObject (const TClass *type, o2::framework::FairInputTBuffer &ftm)
 
MergeInterface * castToMergeInterface (bool inheritsFromTObject, void *object, TClass *storedClass)
 
std::optional< ObjectStore > extractVector (o2::framework::FairInputTBuffer &ftm, const TClass *storedClass)
 

Function Documentation

◆ castToMergeInterface()

MergeInterface * o2::mergers::object_store_helpers::castToMergeInterface ( bool  inheritsFromTObject,
void *  object,
TClass *  storedClass 
)

Definition at line 52 of file ObjectStore.cxx.

◆ extractObjectFrom()

ObjectStore o2::mergers::object_store_helpers::extractObjectFrom ( const framework::DataRef &  ref)

Takes a DataRef, deserializes it (if type is supported) and puts into an ObjectStore.

Definition at line 76 of file ObjectStore.cxx.

◆ extractVector()

std::optional< ObjectStore > o2::mergers::object_store_helpers::extractVector ( o2::framework::FairInputTBuffer &  ftm,
const TClass *  storedClass 
)

Definition at line 63 of file ObjectStore.cxx.

◆ readObject()

void * o2::mergers::object_store_helpers::readObject ( const TClass *  type,
o2::framework::FairInputTBuffer &  ftm 
)

Definition at line 41 of file ObjectStore.cxx.

◆ snapshot()

bool o2::mergers::object_store_helpers::snapshot ( framework::DataAllocator &  allocator,
const header::DataHeader::SubSpecificationType  subSpec,
const ObjectStore &  mergedObject 
)

Used in FullHistorMerger's and IntegratingMerger's publish function. Checks mergedObject for every state that is NOT monostate and creates snapshot of underlying object to the framework.

Returns
Boolean whether the object was succesfully snapshotted or not

Definition at line 163 of file ObjectStore.cxx.

◆ toRawObserverPointers()

VectorOfRawTObjects o2::mergers::object_store_helpers::toRawObserverPointers ( const VectorOfTObjectPtrs &  vector)

Helper function that converts vector of smart pointers to the vector of raw pointers that is serializable. Make sure that original vector lives longer than the observer vector to avoid undefined behavior.

Definition at line 122 of file ObjectStore.cxx.