9#ifndef RAWDATAUTILS_INCLUDE_WIBTOTDE16_HPP_
10#define RAWDATAUTILS_INCLUDE_WIBTOTDE16_HPP_
39 std::cout <<
" Generated frame with TS " << res.
get_timestamp() <<
" for channel " << res.
get_channel() << std::endl;
46 std::ifstream file(
filename.c_str(), std::ios::binary);
47 std::ofstream
out(output.c_str(), std::ios::binary);
48 std::cout <<
"Transforming " <<
filename <<
" to " << output <<
'\n';
50 std::vector<char> v(
size);
51 file.read(v.data(),
size);
54 if (num_frames > 10 ) num_frames = 10;
55 std::cout <<
"Number of frames found: "<< num_frames <<
'\n';
60 auto tdefr =
wibtotde(ptr, timestamp, i);
61 out.write(
reinterpret_cast<char*
>(&tdefr),
sizeof(tdefr));
fddetdataformats::TDE16Frame wibtotde(fddetdataformats::WIBFrame *fr, uint64_t timestamp, uint16_t ch)
void wib_hdf5_to_tde_binary(std::string &, std::string &)
void wib_binary_to_tde_binary(std::string &filename, std::string &output)
FELIX Initialization std::string initerror FELIX queue timed out
FELIX Initialization std::string initerror FELIX queue timed std::string queuename Unexpected chunk size
PDS Frame with unphysical timestamp detected with ch