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 28 of file unpack.cpp.

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