BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
fles::Timeslice Class Reference

The Timeslice class provides read access to the data of a timeslice. More...

#include <Timeslice.h>

Inheritance diagram for fles::Timeslice:
Collaboration diagram for fles::Timeslice:

Public Member Functions

virtual ~Timeslice ()=default
uint64_t index () const
 Retrieve the timeslice index.
uint64_t num_core_microslices () const
 Retrieve the number of core microslices.
uint64_t num_microslices (uint64_t component) const
 Retrieve the total number of microslices.
uint64_t num_components () const
 Retrieve the number of components (contributing input channels).
const uint8_t * content (uint64_t component, uint64_t microslice) const
 Retrieve a pointer to the data content of a given microslice.
const MicrosliceDescriptor & descriptor (uint64_t component, uint64_t microslice) const
 Retrieve the descriptor of a given microslice.
const MicrosliceView get_microslice (uint64_t component, uint64_t microslice_index) const
 Retrieve the descriptor and pointer to the data of a given microslice.
virtual ~Timeslice ()=default
uint64_t index () const
 Retrieve the timeslice index.
uint64_t num_core_microslices () const
 Retrieve the number of core microslices.
uint64_t num_microslices (uint64_t component) const
 Retrieve the total number of microslices.
uint64_t num_components () const
 Retrieve the number of components (contributing input channels).
const uint8_t * content (uint64_t component, uint64_t microslice) const
 Retrieve a pointer to the data content of a given microslice.
const MicrosliceDescriptor & descriptor (uint64_t component, uint64_t microslice) const
 Retrieve the descriptor of a given microslice.
const MicrosliceView get_microslice (uint64_t component, uint64_t microslice_index) const
 Retrieve the descriptor and pointer to the data of a given microslice.

Protected Attributes

TimesliceDescriptor timeslice_descriptor_
 The timeslice descriptor.
std::vector< uint8_t * > data_ptr_
 A vector of pointers to the data content, one per timeslice component.
std::vector< TimesliceComponentDescriptor * > desc_ptr_
 A vector of pointers to the microslice descriptors, one per timeslice component.

Detailed Description

This class is an abstract base class for all classes providing access to the contents of a single timeslice.

Definition at line 28 of file Timeslice.h.

Constructor & Destructor Documentation

◆ ~Timeslice() [1/2]

virtual fles::Timeslice::~Timeslice ( )
virtualdefault

◆ ~Timeslice() [2/2]

virtual fles::Timeslice::~Timeslice ( )
virtualdefault

Member Function Documentation

◆ content() [1/2]

const uint8_t * fles::Timeslice::content ( uint64_t component,
uint64_t microslice ) const
inline

Definition at line 46 of file Timeslice.h.

References data_ptr_, desc_ptr_, descriptor(), and fles::MicrosliceDescriptor::offset.

Referenced by fles::StorableTimeslice::append_microslice().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ content() [2/2]

const uint8_t * fles::Timeslice::content ( uint64_t component,
uint64_t microslice ) const
inline

Definition at line 46 of file Timeslice.h.

References data_ptr_, desc_ptr_, descriptor(), and fles::MicrosliceDescriptor::offset.

Here is the call graph for this function:

◆ descriptor() [1/2]

const MicrosliceDescriptor & fles::Timeslice::descriptor ( uint64_t component,
uint64_t microslice ) const
inline

Definition at line 53 of file Timeslice.h.

References data_ptr_.

Referenced by fles::StorableTimeslice::append_microslice(), and content().

Here is the caller graph for this function:

◆ descriptor() [2/2]

const MicrosliceDescriptor & fles::Timeslice::descriptor ( uint64_t component,
uint64_t microslice ) const
inline

Definition at line 53 of file Timeslice.h.

References data_ptr_.

◆ get_microslice() [1/2]

const MicrosliceView fles::Timeslice::get_microslice ( uint64_t component,
uint64_t microslice_index ) const
inline

Definition at line 59 of file Timeslice.h.

References data_ptr_, desc_ptr_, and fles::MicrosliceDescriptor::offset.

◆ get_microslice() [2/2]

const MicrosliceView fles::Timeslice::get_microslice ( uint64_t component,
uint64_t microslice_index ) const
inline

Definition at line 59 of file Timeslice.h.

References data_ptr_, desc_ptr_, and fles::MicrosliceDescriptor::offset.

◆ index() [1/2]

uint64_t fles::Timeslice::index ( ) const
inline

Definition at line 34 of file Timeslice.h.

References timeslice_descriptor_.

Referenced by fles::StorableTimeslice::StorableTimeslice().

Here is the caller graph for this function:

◆ index() [2/2]

uint64_t fles::Timeslice::index ( ) const
inline

Definition at line 34 of file Timeslice.h.

References timeslice_descriptor_.

◆ num_components() [1/2]

uint64_t fles::Timeslice::num_components ( ) const
inline

Definition at line 43 of file Timeslice.h.

References timeslice_descriptor_.

Referenced by fles::StorableTimeslice::init_pointers().

Here is the caller graph for this function:

◆ num_components() [2/2]

uint64_t fles::Timeslice::num_components ( ) const
inline

Definition at line 43 of file Timeslice.h.

References timeslice_descriptor_.

◆ num_core_microslices() [1/2]

uint64_t fles::Timeslice::num_core_microslices ( ) const
inline

Definition at line 37 of file Timeslice.h.

References timeslice_descriptor_.

Referenced by fles::StorableTimeslice::StorableTimeslice().

Here is the caller graph for this function:

◆ num_core_microslices() [2/2]

uint64_t fles::Timeslice::num_core_microslices ( ) const
inline

Definition at line 37 of file Timeslice.h.

References timeslice_descriptor_.

◆ num_microslices() [1/2]

uint64_t fles::Timeslice::num_microslices ( uint64_t component) const
inline

Definition at line 40 of file Timeslice.h.

References desc_ptr_.

Referenced by fles::StorableTimeslice::append_component().

Here is the caller graph for this function:

◆ num_microslices() [2/2]

uint64_t fles::Timeslice::num_microslices ( uint64_t component) const
inline

Definition at line 40 of file Timeslice.h.

References desc_ptr_.

Member Data Documentation

◆ data_ptr_

std::vector< uint8_t * > fles::Timeslice::data_ptr_
protected

◆ desc_ptr_

std::vector< TimesliceComponentDescriptor * > fles::Timeslice::desc_ptr_
protected

◆ timeslice_descriptor_


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