DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dunedaq::hsilibs::HSI_FRAME_STRUCT Class Reference

#include <Types.hpp>

Collaboration diagram for dunedaq::hsilibs::HSI_FRAME_STRUCT:
[legend]

Public Types

using FrameType = HSI_FRAME_STRUCT
 

Public Member Functions

bool operator< (const FrameType &other) const
 
uint64_t get_timestamp () const
 
void set_timestamp (uint64_t ts)
 
void fake_timestamps (uint64_t first_timestamp, uint64_t=0)
 
FrameTypebegin ()
 
FrameTypeend ()
 
size_t get_payload_size ()
 
size_t get_num_frames ()
 
size_t get_frame_size ()
 

Public Attributes

dunedaq::detdataformats::HSIFrame frame
 

Static Public Attributes

static const constexpr daqdataformats::SourceID::Subsystem subsystem
 
static const constexpr daqdataformats::FragmentType fragment_type = daqdataformats::FragmentType::kHardwareSignal
 
static const constexpr uint64_t expected_tick_difference = 1
 

Detailed Description

Definition at line 35 of file Types.hpp.

Member Typedef Documentation

◆ FrameType

Member Function Documentation

◆ begin()

FrameType * dunedaq::hsilibs::HSI_FRAME_STRUCT::begin ( )
inline

Definition at line 63 of file Types.hpp.

63{ return this; }

◆ end()

FrameType * dunedaq::hsilibs::HSI_FRAME_STRUCT::end ( )
inline

Definition at line 65 of file Types.hpp.

65{ return (this + 1); } // NOLINT

◆ fake_timestamps()

void dunedaq::hsilibs::HSI_FRAME_STRUCT::fake_timestamps ( uint64_t first_timestamp,
uint64_t = 0 )
inline

Definition at line 58 of file Types.hpp.

59 {
60 frame.set_timestamp(first_timestamp);
61 }
void set_timestamp(uint64_t ts)
Definition HSIFrame.hpp:37
dunedaq::detdataformats::HSIFrame frame
Definition Types.hpp:40

◆ get_frame_size()

size_t dunedaq::hsilibs::HSI_FRAME_STRUCT::get_frame_size ( )
inline

Definition at line 71 of file Types.hpp.

71{ return HSI_FRAME_STRUCT_SIZE; }
const constexpr std::size_t HSI_FRAME_STRUCT_SIZE
For HSI the numbers are different. 1[HSI frames] x 24[Bytes] = 24[Bytes].
Definition Types.hpp:33

◆ get_num_frames()

size_t dunedaq::hsilibs::HSI_FRAME_STRUCT::get_num_frames ( )
inline

Definition at line 69 of file Types.hpp.

69{ return 1; }

◆ get_payload_size()

size_t dunedaq::hsilibs::HSI_FRAME_STRUCT::get_payload_size ( )
inline

Definition at line 67 of file Types.hpp.

67{ return HSI_FRAME_STRUCT_SIZE; }

◆ get_timestamp()

uint64_t dunedaq::hsilibs::HSI_FRAME_STRUCT::get_timestamp ( ) const
inline

Definition at line 48 of file Types.hpp.

49 {
50 return frame.get_timestamp(); // NOLINT
51 }

◆ operator<()

bool dunedaq::hsilibs::HSI_FRAME_STRUCT::operator< ( const FrameType & other) const
inline

Definition at line 43 of file Types.hpp.

44 {
45 return this->get_timestamp() < other.get_timestamp() ? true : false;
46 }
uint64_t get_timestamp() const
Definition Types.hpp:48

◆ set_timestamp()

void dunedaq::hsilibs::HSI_FRAME_STRUCT::set_timestamp ( uint64_t ts)
inline

Definition at line 53 of file Types.hpp.

54 {
56 }
PDS Frame with unphysical timestamp detected with ts

Member Data Documentation

◆ expected_tick_difference

const constexpr uint64_t dunedaq::hsilibs::HSI_FRAME_STRUCT::expected_tick_difference = 1
staticconstexpr

Definition at line 76 of file Types.hpp.

◆ fragment_type

const constexpr daqdataformats::FragmentType dunedaq::hsilibs::HSI_FRAME_STRUCT::fragment_type = daqdataformats::FragmentType::kHardwareSignal
staticconstexpr

Definition at line 75 of file Types.hpp.

◆ frame

dunedaq::detdataformats::HSIFrame dunedaq::hsilibs::HSI_FRAME_STRUCT::frame

Definition at line 40 of file Types.hpp.

◆ subsystem

const constexpr daqdataformats::SourceID::Subsystem dunedaq::hsilibs::HSI_FRAME_STRUCT::subsystem
staticconstexpr

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