#include <CTBFragment.hh>
Definition at line 37 of file CTBFragment.hh.
dune::CTBFragment::CTBFragment |
( |
artdaq::Fragment const & |
f | ) |
|
Definition at line 48 of file CTBFragment.cc.
artdaq::Fragment const & artdaq_Fragment_
const unsigned int _n_words
static constexpr unsigned int WordSize()
Definition at line 79 of file CTBFragment.cc.
83 if ( ! w )
return nullptr ;
const ptb::content::word::ch_status_t * ChStatus(unsigned int i) const
const ptb::content::word::word_t * Word(unsigned int i) const
Definition at line 68 of file CTBFragment.cc.
72 if ( ! w )
return nullptr ;
const ptb::content::word::word_t * Word(unsigned int i) const
const ptb::content::word::feedback_t * Feedback(unsigned int i) const
unsigned int dune::CTBFragment::NWords |
( |
| ) |
const |
|
inlinenoexcept |
Definition at line 52 of file CTBFragment.hh.
const ptb::content::word::word_t * Word(unsigned int i) const
Definition at line 90 of file CTBFragment.cc.
94 if ( ! w )
return nullptr ;
const ptb::content::word::word_t * Word(unsigned int i) const
const ptb::content::word::timestamp_t * Timestamp(unsigned int i) const
Definition at line 101 of file CTBFragment.cc.
105 if ( ! w )
return nullptr ;
const ptb::content::word::word_t * Word(unsigned int i) const
const ptb::content::word::trigger_t * Trigger(unsigned int i) const
Definition at line 59 of file CTBFragment.cc.
61 if ( i >=
NWords() )
return nullptr ;
artdaq::Fragment const & artdaq_Fragment_
unsigned int NWords() const noexcept
static constexpr unsigned int WordSize()
static constexpr unsigned int dune::CTBFragment::WordSize |
( |
| ) |
|
|
inlinestatic |
Definition at line 86 of file CTBFragment.hh.
struct ptb::content::word::word_t word_t
std::ostream& operator<< |
( |
std::ostream & |
out, |
|
|
CTBFragment const & |
f |
|
) |
| |
|
friend |
Definition at line 6 of file CTBFragment.cc.
8 out <<
"Fragment size: " <<
f.artdaq_Fragment_.dataSizeBytes() <<
" -> " <<
f._n_words <<
" words" <<
std::endl ;
10 for (
unsigned int i = 0; i <
f.NWords() ; ++i ) {
14 <<
", payload: " <<
f.Trigger(i) -> trigger_word
17 else if (
f.ChStatus(i) ) {
18 out <<
"Check Status word " <<
std::hex 19 <<
" PDS " <<
f.ChStatus(i) -> get_pds()
20 <<
", CRT: " <<
f.ChStatus(i) -> get_crt()
21 <<
", Beam: " <<
f.ChStatus(i) -> get_beam()
22 <<
", TS: " <<
f.ChStatus(i) -> timestamp
26 else if (
f.Feedback(i) ) {
28 <<
", Padding: " <<
f.Feedback(i) -> padding
29 <<
", Source: " <<
f.Feedback(i) ->
source 30 <<
", Code: " <<
f.Feedback(i) ->
code 36 <<
", payload: " <<
f.Word(i) -> payload
QTextStream & hex(QTextStream &s)
CodeOutputInterface * code
QTextStream & dec(QTextStream &s)
QTextStream & endl(QTextStream &s)
const unsigned int dune::CTBFragment::_n_words |
|
private |
artdaq::Fragment const& dune::CTBFragment::artdaq_Fragment_ |
|
private |
The documentation for this class was generated from the following files: