60 const auto& input_header = struct_data.
header;
62 if (header ==
nullptr)
64 throw std::runtime_error(
"header is nullptr!");
66 header->set_frame_counter(input_header.frame_counter);
67 header->set_fec_id(input_header.fec_id);
68 header->set_udp_timestamp(input_header.udp_timestamp);
69 header->set_overflow(input_header.overflow);
85 const auto& input_hit_data = struct_data.
hit_data;
86 for (
const auto& input_data : input_hit_data)
89 hit_data->set_is_over_threshold(input_data.is_over_threshold);
90 hit_data->set_channel_num(input_data.channel_num);
91 hit_data->set_tdc(input_data.tdc);
92 hit_data->set_offset(input_data.offset);
93 hit_data->set_vmm_id(input_data.vmm_id);
94 hit_data->set_adc(input_data.adc);
95 hit_data->set_bc_id(input_data.bc_id);