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

#include <TDE16Frame.hpp>

Collaboration diagram for dunedaq::fddetdataformats::TDE16Frame:
[legend]

Public Member Functions

const detdataformats::DAQEthHeaderget_daq_header () const
detdataformats::DAQEthHeaderget_daq_header ()
const TDEHeaderget_tde_header () const
TDEHeaderget_tde_header ()
uint64_t get_timestamp () const
void set_timestamp (const uint64_t new_timestamp)
uint16_t get_channel () const
void set_channel (const uint16_t new_channel)
uint16_t get_tde_errors ()
void set_tde_errors (const uint16_t new_tde_errors)
uint64_t get_TAItime ()
void set_TAItime (const uint64_t new_TAItime)
void set_adc_sample (const uint16_t new_adc_val, int sample_no)
uint16_t get_adc_sample (int sample_no) const

Private Attributes

detdataformats::DAQEthHeader m_daq_header
TDEHeader m_tde16_header
ADC16Data m_adc16_data

Friends

std::ostream & operator<< (std::ostream &o, TDE16Frame const &tde16_frame)

Detailed Description

Definition at line 55 of file TDE16Frame.hpp.

Member Function Documentation

◆ get_adc_sample()

uint16_t dunedaq::fddetdataformats::TDE16Frame::get_adc_sample ( int sample_no) const
inline

Definition at line 78 of file TDE16Frame.hpp.

78{ return m_adc16_data.get_adc_sample(sample_no); }

◆ get_channel()

uint16_t dunedaq::fddetdataformats::TDE16Frame::get_channel ( ) const
inline

Definition at line 66 of file TDE16Frame.hpp.

66{ return m_tde16_header.channel; }

◆ get_daq_header() [1/2]

detdataformats::DAQEthHeader * dunedaq::fddetdataformats::TDE16Frame::get_daq_header ( )
inline

Definition at line 59 of file TDE16Frame.hpp.

59{ return &m_daq_header; }
detdataformats::DAQEthHeader m_daq_header

◆ get_daq_header() [2/2]

const detdataformats::DAQEthHeader * dunedaq::fddetdataformats::TDE16Frame::get_daq_header ( ) const
inline

Definition at line 58 of file TDE16Frame.hpp.

58{ return &m_daq_header; }

◆ get_TAItime()

uint64_t dunedaq::fddetdataformats::TDE16Frame::get_TAItime ( )
inline

Definition at line 70 of file TDE16Frame.hpp.

70{ return m_tde16_header.TAItime; }

◆ get_tde_errors()

uint16_t dunedaq::fddetdataformats::TDE16Frame::get_tde_errors ( )
inline

Definition at line 68 of file TDE16Frame.hpp.

68{ return m_tde16_header.tde_errors; }

◆ get_tde_header() [1/2]

TDEHeader * dunedaq::fddetdataformats::TDE16Frame::get_tde_header ( )
inline

Definition at line 61 of file TDE16Frame.hpp.

61{ return &m_tde16_header; }

◆ get_tde_header() [2/2]

const TDEHeader * dunedaq::fddetdataformats::TDE16Frame::get_tde_header ( ) const
inline

Definition at line 60 of file TDE16Frame.hpp.

60{ return &m_tde16_header; }

◆ get_timestamp()

uint64_t dunedaq::fddetdataformats::TDE16Frame::get_timestamp ( ) const
inline

Definition at line 64 of file TDE16Frame.hpp.

64{ return m_daq_header.get_timestamp(); }

◆ set_adc_sample()

void dunedaq::fddetdataformats::TDE16Frame::set_adc_sample ( const uint16_t new_adc_val,
int sample_no )
inline

Definition at line 74 of file TDE16Frame.hpp.

75 {
76 m_adc16_data.samples_info[sample_no].sample = new_adc_val;
77 }

◆ set_channel()

void dunedaq::fddetdataformats::TDE16Frame::set_channel ( const uint16_t new_channel)
inline

Definition at line 67 of file TDE16Frame.hpp.

67{ m_tde16_header.channel = new_channel; }

◆ set_TAItime()

void dunedaq::fddetdataformats::TDE16Frame::set_TAItime ( const uint64_t new_TAItime)
inline

Definition at line 71 of file TDE16Frame.hpp.

71{ m_tde16_header.TAItime = new_TAItime; }

◆ set_tde_errors()

void dunedaq::fddetdataformats::TDE16Frame::set_tde_errors ( const uint16_t new_tde_errors)
inline

Definition at line 69 of file TDE16Frame.hpp.

69{ m_tde16_header.tde_errors = new_tde_errors; }

◆ set_timestamp()

void dunedaq::fddetdataformats::TDE16Frame::set_timestamp ( const uint64_t new_timestamp)
inline

Definition at line 65 of file TDE16Frame.hpp.

65{ m_daq_header.timestamp = new_timestamp; }

◆ operator<<

std::ostream & operator<< ( std::ostream & o,
TDE16Frame const & tde16_frame )
friend

Definition at line 102 of file TDE16Frame.hpp.

104{
105 o << "Printing frame:" << '\n';
106 o << tde16frame.m_daq_header << '\n';
107 o << tde16frame.m_tde16_header << '\n';
108 return o;
109}

Member Data Documentation

◆ m_adc16_data

ADC16Data dunedaq::fddetdataformats::TDE16Frame::m_adc16_data
private

Definition at line 85 of file TDE16Frame.hpp.

◆ m_daq_header

detdataformats::DAQEthHeader dunedaq::fddetdataformats::TDE16Frame::m_daq_header
private

Definition at line 83 of file TDE16Frame.hpp.

◆ m_tde16_header

TDEHeader dunedaq::fddetdataformats::TDE16Frame::m_tde16_header
private

Definition at line 84 of file TDE16Frame.hpp.


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