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

Namespaces

namespace  daphne
namespace  daphneeth
namespace  python
namespace  tde
namespace  unpack
namespace  wibeth

Functions

void print_hex_fragment (daqdataformats::Fragment const &frag)

Function Documentation

◆ print_hex_fragment()

void dunedaq::rawdatautils::print_hex_fragment ( daqdataformats::Fragment const & frag)

Definition at line 27 of file unpack.cpp.

27 {
28 uint64_t* data = static_cast<uint64_t*>(frag.get_data());
29 size_t data_size = (frag.get_size() - sizeof(daqdataformats::FragmentHeader))/8;
30
31 for ( size_t i(0); i<data_size; ++i) {
32 fmt::print("{:06d} 0x{:016x}\n", i, data[i]);
33 }
34
35}
The header for a DUNE Fragment.