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 53 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 73 of file TDE16Frame.hpp.

73{ return m_adc16_data.get_adc_sample(sample_no); }
uint16_t get_adc_sample(int i) const

◆ get_channel()

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

◆ get_daq_header() [1/2]

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

Definition at line 57 of file TDE16Frame.hpp.

57{ 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 56 of file TDE16Frame.hpp.

56{ return &m_daq_header; }

◆ get_TAItime()

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

Definition at line 68 of file TDE16Frame.hpp.

◆ get_tde_errors()

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

Definition at line 66 of file TDE16Frame.hpp.

◆ get_tde_header() [1/2]

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

Definition at line 59 of file TDE16Frame.hpp.

59{ return &m_tde16_header; }

◆ get_tde_header() [2/2]

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

Definition at line 58 of file TDE16Frame.hpp.

58{ return &m_tde16_header; }

◆ get_timestamp()

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

Definition at line 62 of file TDE16Frame.hpp.

◆ set_adc_sample()

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

Definition at line 72 of file TDE16Frame.hpp.

72{ m_adc16_data.samples_info[sample_no].sample = new_adc_val; }
Sample samples_info[tot_adc16_samples]

◆ set_channel()

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

Definition at line 65 of file TDE16Frame.hpp.

65{ m_tde16_header.channel=new_channel; }

◆ set_TAItime()

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

Definition at line 69 of file TDE16Frame.hpp.

69{ 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 67 of file TDE16Frame.hpp.

67{ 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 63 of file TDE16Frame.hpp.

Friends And Related Symbol Documentation

◆ operator<<

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

Definition at line 97 of file TDE16Frame.hpp.

99{
100 o << "Printing frame:" << '\n';
101 o << tde16frame.m_daq_header << '\n';
102 o << tde16frame.m_tde16_header << '\n';
103 return o;
104}

Member Data Documentation

◆ m_adc16_data

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

Definition at line 80 of file TDE16Frame.hpp.

◆ m_daq_header

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

Definition at line 78 of file TDE16Frame.hpp.

◆ m_tde16_header

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

Definition at line 79 of file TDE16Frame.hpp.


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