Project
Loading...
Searching...
No Matches
o2::dataformats::ConstMCTruthContainer< TruthElement > Class Template Reference

A read-only version of MCTruthContainer allowing for storage optimisation. More...

#include <ConstMCTruthContainer.h>

Inherits std::vector< char >.

Public Member Functions

 ConstMCTruthContainer ()=default
 
MCTruthHeaderElement const & getMCTruthHeader (uint32_t dataindex) const
 
gsl::span< const TruthElement > getLabels (uint32_t dataindex) const
 
size_t getIndexedSize () const
 
size_t getNElements () const
 

Detailed Description

template<typename TruthElement>
class o2::dataformats::ConstMCTruthContainer< TruthElement >

A read-only version of MCTruthContainer allowing for storage optimisation.

This provides access functionality to MCTruthContainer with optimized linear storage so that the data can easily be shared in memory or sent over network. This container needs to be initialized by calling "flatten_to" from an existing MCTruthContainer

Definition at line 39 of file ConstMCTruthContainer.h.

Constructor & Destructor Documentation

◆ ConstMCTruthContainer()

template<typename TruthElement >
o2::dataformats::ConstMCTruthContainer< TruthElement >::ConstMCTruthContainer ( )
default

Member Function Documentation

◆ getIndexedSize()

template<typename TruthElement >
size_t o2::dataformats::ConstMCTruthContainer< TruthElement >::getIndexedSize ( ) const
inline

Definition at line 65 of file ConstMCTruthContainer.h.

◆ getLabels()

template<typename TruthElement >
gsl::span< const TruthElement > o2::dataformats::ConstMCTruthContainer< TruthElement >::getLabels ( uint32_t  dataindex) const
inline

Definition at line 54 of file ConstMCTruthContainer.h.

◆ getMCTruthHeader()

template<typename TruthElement >
MCTruthHeaderElement const & o2::dataformats::ConstMCTruthContainer< TruthElement >::getMCTruthHeader ( uint32_t  dataindex) const
inline

Definition at line 49 of file ConstMCTruthContainer.h.

◆ getNElements()

template<typename TruthElement >
size_t o2::dataformats::ConstMCTruthContainer< TruthElement >::getNElements ( ) const
inline

Definition at line 68 of file ConstMCTruthContainer.h.


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