DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dunedaq::detdataformats::wib::TpData Struct Reference

#include <RawWIBTp.hpp>

Public Member Functions

std::ostream & print (std::ostream &o) const
 
std::ostream & print_hex (std::ostream &o) const
 
std::ostream & print_bits (std::ostream &o) const
 

Public Attributes

tp_word_t m_end_time: 16
 
tp_word_t m_start_time: 16
 
tp_word_t m_peak_time: 16
 
tp_word_t m_peak_adc: 16
 
tp_word_t m_hit_continue: 1
 
tp_word_t m_tp_flags: 15
 
tp_word_t m_sum_adc: 16
 

Detailed Description

Definition at line 124 of file RawWIBTp.hpp.

Member Function Documentation

◆ print()

std::ostream & dunedaq::detdataformats::wib::TpData::print ( std::ostream & o) const
inline

Definition at line 132 of file RawWIBTp.hpp.

133 {
134 o << "Printing raw WIB TP:\n";
135 o << "start_time:" << unsigned(m_start_time) << " end_time:" << unsigned(m_end_time)
136 << " peak_adc:" << unsigned(m_peak_adc) << " peak_time:" << unsigned(m_peak_time)
137 << " sum_adc:" << unsigned(m_sum_adc) << " flags:" << unsigned(m_tp_flags)
138 << " hit_continue:" << unsigned(m_hit_continue);
139 return o << '\n';
140 }

◆ print_bits()

std::ostream & dunedaq::detdataformats::wib::TpData::print_bits ( std::ostream & o) const
inline

Definition at line 151 of file RawWIBTp.hpp.

152 {
153 o << "Printing raw WIB TP:\n";
154 o << "start_time:" << std::bitset<16>(m_start_time) << " end_time:" << std::bitset<16>(m_end_time)
155 << " peak_adc:" << std::bitset<16>(m_peak_adc) << " peak_time:" << std::bitset<16>(m_peak_time)
156 << " sum_adc:" << std::bitset<16>(m_sum_adc) << " flags:" << std::bitset<15>(m_tp_flags)
157 << " hit_continue:" << std::bitset<1>(m_hit_continue);
158 return o << '\n';
159 }

◆ print_hex()

std::ostream & dunedaq::detdataformats::wib::TpData::print_hex ( std::ostream & o) const
inline

Definition at line 142 of file RawWIBTp.hpp.

143 {
144 o << "Printing raw WIB TP:\n";
145 o << std::hex << "start_time:" << m_start_time << " end_time:" << m_end_time << " peak_adc:" << m_peak_adc
146 << " peak_time:" << m_peak_time << " sum_adc:" << m_sum_adc << " flags:" << m_tp_flags
147 << " hit_continue:" << m_hit_continue;
148 return o << std::dec << '\n';
149 }

Member Data Documentation

◆ m_end_time

tp_word_t dunedaq::detdataformats::wib::TpData::m_end_time

Definition at line 128 of file RawWIBTp.hpp.

◆ m_hit_continue

tp_word_t dunedaq::detdataformats::wib::TpData::m_hit_continue

Definition at line 130 of file RawWIBTp.hpp.

◆ m_peak_adc

tp_word_t dunedaq::detdataformats::wib::TpData::m_peak_adc

Definition at line 129 of file RawWIBTp.hpp.

◆ m_peak_time

tp_word_t dunedaq::detdataformats::wib::TpData::m_peak_time

Definition at line 129 of file RawWIBTp.hpp.

◆ m_start_time

tp_word_t dunedaq::detdataformats::wib::TpData::m_start_time

Definition at line 128 of file RawWIBTp.hpp.

◆ m_sum_adc

tp_word_t dunedaq::detdataformats::wib::TpData::m_sum_adc

Definition at line 130 of file RawWIBTp.hpp.

◆ m_tp_flags

tp_word_t dunedaq::detdataformats::wib::TpData::m_tp_flags

Definition at line 130 of file RawWIBTp.hpp.


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