artdaq_core_demo  v1_07_01
demo::ToyFragment::Metadata Struct Reference

The ToyFragment::Metadata struct holds data about the readout that may not be present in the primary data stream. More...

#include <artdaq-core-demo/Overlays/ToyFragment.hh>

Public Types

typedef uint64_t data_t
 Fundamental unit of data representation within the ToyFragment::Metadata.
 

Public Attributes

data_t board_serial_number: 16
 Serial number of the simulated board.
 
data_t num_adc_bits: 8
 Number of ADC bits this simulated board uses.
 
data_t unused: 40
 Unused.
 

Static Public Attributes

static size_t const size_words = 1ul
 Size of the ToyFragment::Metadata struct, in units of Metadata::data_t.
 

Detailed Description

The ToyFragment::Metadata struct holds data about the readout that may not be present in the primary data stream.

The "Metadata" struct declared here is used to define the set of information that is stored in the "metadata" section of artdaq::Fragments that contain ToyFragments in their payload. This struct is not used by the ToyFragment Overlay class itself; it is defined here simply as a convenience. The types of information that are typically stored in artdaq::Fragment metadata blocks are things like hardware serial numbers or values of an interesting configuration parameter. These things are generally not part of the data read out from the electronics hardware in each event, hence the need to store them outside the block of data that the hardware provides.

Definition at line 44 of file ToyFragment.hh.


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