DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dunedaq::trigger::TCWrapper Struct Reference

#include <TCWrapper.hpp>

Collaboration diagram for dunedaq::trigger::TCWrapper:
[legend]

Public Types

using FrameType = TCWrapper
 

Public Member Functions

 TCWrapper (triggeralgs::TriggerCandidate c=triggeralgs::TriggerCandidate())
 
void populate_buffer ()
 
bool operator< (const TCWrapper &other) const
 
uint64_t get_timestamp () const
 
void set_timestamp (uint64_t ts)
 
void fake_timestamps (uint64_t first_timestamp, uint64_t=0)
 
size_t get_payload_size ()
 
size_t get_num_frames ()
 
size_t get_frame_size ()
 
TCWrapperbegin ()
 
TCWrapperend ()
 

Public Attributes

triggeralgs::TriggerCandidate candidate
 
std::vector< uint8_t > candidate_overlay_buffer
 

Static Public Attributes

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

Detailed Description

Definition at line 20 of file TCWrapper.hpp.

Member Typedef Documentation

◆ FrameType

Constructor & Destructor Documentation

◆ TCWrapper()

dunedaq::trigger::TCWrapper::TCWrapper ( triggeralgs::TriggerCandidate c = triggeralgs::TriggerCandidate())
inline

Definition at line 28 of file TCWrapper.hpp.

29 : candidate(c)
30 {
32 }
triggeralgs::TriggerCandidate candidate
Definition TCWrapper.hpp:23

Member Function Documentation

◆ begin()

TCWrapper * dunedaq::trigger::TCWrapper::begin ( )
inline

Definition at line 68 of file TCWrapper.hpp.

69 {
70 return (TCWrapper*)(candidate_overlay_buffer.data());
71 }
TCWrapper(triggeralgs::TriggerCandidate c=triggeralgs::TriggerCandidate())
Definition TCWrapper.hpp:28
std::vector< uint8_t > candidate_overlay_buffer
Definition TCWrapper.hpp:24

◆ end()

TCWrapper * dunedaq::trigger::TCWrapper::end ( )
inline

Definition at line 73 of file TCWrapper.hpp.

74 {
76 }

◆ fake_timestamps()

void dunedaq::trigger::TCWrapper::fake_timestamps ( uint64_t first_timestamp,
uint64_t = 0 )
inline

Definition at line 56 of file TCWrapper.hpp.

◆ get_frame_size()

size_t dunedaq::trigger::TCWrapper::get_frame_size ( )
inline

Definition at line 66 of file TCWrapper.hpp.

66{ return get_payload_size(); }

◆ get_num_frames()

size_t dunedaq::trigger::TCWrapper::get_num_frames ( )
inline

Definition at line 64 of file TCWrapper.hpp.

64{ return 1; }

◆ get_payload_size()

size_t dunedaq::trigger::TCWrapper::get_payload_size ( )
inline

Definition at line 62 of file TCWrapper.hpp.

62{ return candidate_overlay_buffer.size(); }

◆ get_timestamp()

uint64_t dunedaq::trigger::TCWrapper::get_timestamp ( ) const
inline

Definition at line 46 of file TCWrapper.hpp.

47 {
48 return candidate.time_start;
49 }

◆ operator<()

bool dunedaq::trigger::TCWrapper::operator< ( const TCWrapper & other) const
inline

Definition at line 41 of file TCWrapper.hpp.

42 {
43 return std::tie(this->candidate.time_start, this->candidate.type) < std::tie(other.candidate.time_start, other.candidate.type);
44 }

◆ populate_buffer()

void dunedaq::trigger::TCWrapper::populate_buffer ( )
inline

Definition at line 34 of file TCWrapper.hpp.

35 {
38 }
void write_overlay(const Object &object, void *buffer)
size_t get_overlay_nbytes(const Object &object)

◆ set_timestamp()

void dunedaq::trigger::TCWrapper::set_timestamp ( uint64_t ts)
inline

Definition at line 51 of file TCWrapper.hpp.

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

Member Data Documentation

◆ candidate

triggeralgs::TriggerCandidate dunedaq::trigger::TCWrapper::candidate

Definition at line 23 of file TCWrapper.hpp.

◆ candidate_overlay_buffer

std::vector<uint8_t> dunedaq::trigger::TCWrapper::candidate_overlay_buffer

Definition at line 24 of file TCWrapper.hpp.

◆ expected_tick_difference

const constexpr uint64_t dunedaq::trigger::TCWrapper::expected_tick_difference = 1
staticconstexpr

Definition at line 82 of file TCWrapper.hpp.

◆ fragment_type

const constexpr daqdataformats::FragmentType dunedaq::trigger::TCWrapper::fragment_type = daqdataformats::FragmentType::kTriggerCandidate
staticconstexpr

Definition at line 80 of file TCWrapper.hpp.

◆ subsystem

const constexpr daqdataformats::SourceID::Subsystem dunedaq::trigger::TCWrapper::subsystem = daqdataformats::SourceID::Subsystem::kTrigger
staticconstexpr

Definition at line 79 of file TCWrapper.hpp.


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