DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dunedaq::detdataformats::fwtp Namespace Reference

Classes

struct  RawTp
 
struct  TpData
 
struct  TpHeader
 

Typedefs

using tp_word_t = uint32_t
 

Functions

std::ostream & operator<< (std::ostream &o, TpHeader const &h)
 
std::ostream & operator<< (std::ostream &o, TpData const &tp)
 
std::ostream & operator<< (std::ostream &o, RawTp const &rwtp)
 

Typedef Documentation

◆ tp_word_t

Definition at line 19 of file RawTp.hpp.

Function Documentation

◆ operator<<() [1/3]

std::ostream & dunedaq::detdataformats::fwtp::operator<< ( std::ostream & o,
RawTp const & rwtp )
inline

Definition at line 236 of file RawTp.hpp.

238{
239 o << "Printing raw TP frame:" << '\n';
240 o << rwtp.m_head << '\n';
241 return o;
242}

◆ operator<<() [2/3]

std::ostream & dunedaq::detdataformats::fwtp::operator<< ( std::ostream & o,
TpData const & tp )
inline

Definition at line 162 of file RawTp.hpp.

164{
165 o << "Printing raw TP:\n";
166 o << "start_time:" << unsigned(tp.m_start_time) << " end_time:" << unsigned(tp.m_end_time)
167 << " peak_adc:" << unsigned(tp.m_peak_adc) << " peak_time:" << unsigned(tp.m_peak_time)
168 << " sum_adc:" << unsigned(tp.m_sum_adc) << " flags:" << unsigned(tp.m_tp_flags)
169 << " hit_continue:" << unsigned(tp.m_hit_continue);
170 return o << '\n';
171}

◆ operator<<() [3/3]

std::ostream & dunedaq::detdataformats::fwtp::operator<< ( std::ostream & o,
TpHeader const & h )
inline

Definition at line 108 of file RawTp.hpp.

110{
111 o << "Printing raw TP header:\n";
112 o << "flags:" << unsigned(h.m_flags) << " slot:" << unsigned(h.m_slot_no) << " wire:" << unsigned(h.m_wire_no)
113 << " fiber:" << unsigned(h.m_fiber_no) << " crate:" << unsigned(h.m_crate_no) << " timestamp:" << h.get_timestamp();
114 o << "\nPrinting raw TP pedinfo:\n";
115 o << "median:" << unsigned(h.m_median) << " accumulator:" << unsigned(h.m_accumulator)
116 << " nhits:" << unsigned(h.m_nhits) << " padding_1:" << unsigned(h.m_padding_1)
117 << " padding_2:" << unsigned(h.m_padding_2) << " padding_3:" << unsigned(h.m_padding_3);
118 return o << '\n';
119}