61 {
62
63 m_input_file = std::make_unique<hdf5libs::HDF5RawDataFile>(input_path);
64
66 fmt::print("ERROR: input file '{}' not of type 'TimeSlice'\n", input_path);
67 throw std::runtime_error(fmt::format("ERROR: input file '{}' not of type 'TimeSlice'", input_path));
68 }
69
70 auto run_number =
m_input_file->get_attribute<daqdataformats::run_number_t>(
"run_number");
71 auto file_index =
m_input_file->get_attribute<
size_t>(
"file_index");
72 auto application_name =
m_input_file->get_attribute<std::string>(
"application_name");
73
74 fmt::print("Run Number: {}\nFile Index: {}\nApp name: '{}'\n", run_number, file_index, application_name);
75
76 if (!output_path.empty()) {
77
79 output_path,
80 m_input_file->get_attribute<daqdataformats::run_number_t>(
"run_number"),
82 m_input_file->get_attribute<std::string>(
"application_name"),
83 m_input_file->get_file_layout().get_file_layout_params(),
85 );
86 }
87}