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 ()
TCWrapper * begin ()
TCWrapper * end ()

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 69 of file TCWrapper.hpp.

69{ return (TCWrapper*)(candidate_overlay_buffer.data()); }
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 71 of file TCWrapper.hpp.

◆ fake_timestamps()

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

Definition at line 57 of file TCWrapper.hpp.

◆ get_frame_size()

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

Definition at line 67 of file TCWrapper.hpp.

67{ return get_payload_size(); }

◆ get_num_frames()

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

Definition at line 65 of file TCWrapper.hpp.

65{ return 1; }

◆ get_payload_size()

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

Definition at line 63 of file TCWrapper.hpp.

63{ return candidate_overlay_buffer.size(); }

◆ get_timestamp()

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

Definition at line 47 of file TCWrapper.hpp.

48 {
49 return candidate.time_start;
50 }

◆ 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) <
44 std::tie(other.candidate.time_start, other.candidate.type);
45 }

◆ 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 52 of file TCWrapper.hpp.

53 {
55 }

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 77 of file TCWrapper.hpp.

◆ fragment_type

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

Definition at line 75 of file TCWrapper.hpp.

◆ subsystem

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

Definition at line 74 of file TCWrapper.hpp.


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