|
| RL_API int | validate_collector_file (const std::string &filename) |
| | Validate that a given file is a valid collector file, and return the number of scan points it contains (0 if it's not a point-based collector)
|
| |
|
RL_API int | validate_collector_file_impl (const HighFive::File &file, const std::string &filename) |
| |
| RL_API bool | warn_about_another_build (const HighFive::File &file, const std::string &filename) |
| | Warn on stderr if a collector file was written by another libreadout build.
|
| |
|
RL_API void | ensure_file_attributes (HighFive::File &file) |
| |
|
RL_API void | ensure_collector_group_attributes (HighFive::Group &group) |
| |
|
RL_API void | ensure_parameter_group_attributes (HighFive::Group &group) |
| |
|
RL_API std::string | validate_file_attributes (const HighFive::File &file) |
| |
|
RL_API std::string | validate_collector_group (const HighFive::Group &group) |
| |
|
RL_API std::string | validate_collector_root (const HighFive::Group &group) |
| |
|
RL_API bool | validate_collector_files (const std::vector< std::string > &in_filenames, std::set< std::string > &datasets, std::map< std::string, size_t > &sizes, std::set< std::string > &valid_files, std::string &collector_name, std::set< std::string > ¶meters) |
| |
| RL_API bool | append_collector_files (const std::string &out_filename, const std::vector< std::string > &in_filenames, bool reset_datasets) |
| | Append readouts from multiple same-point collector files into a single output file.
|
| |
| RL_API bool | concatenate_collector_files (const std::string &out_filename, const std::vector< std::string > &in_filenames) |
| | Concatenate readouts from multiple different-point collector files into a single multi-point output file.
|
| |
| RL_API bool | merge_collector_files (const std::string &out_filename, const std::vector< std::string > &in_filenames, bool remove_after_merge) |
| | Merge (append) readouts from multiple same-point collector files, optionally removing the inputs afterwards.
|
| |
| RL_API bool | combine_collector_files (const std::string &out_filename, const std::vector< std::string > &in_filenames) |
| | Combine multiple collector files automatically choosing append vs concatenate based on parameter identity.
|
| |
| RL_API void | merge_collector_datasets (const std::string &out_filename, const std::vector< std::string > &in_filenames, const std::string &which_dataset, bool remove_after_merge) |
| | Merge dataset(s) from multiple collector files into a single output file, for a specified scan point if applicable.
|
| |
| RL_API void | copy_collector_parameters (const std::string &out_filename, const std::vector< std::string > &in_filenames) |
| | Copy parameters from multiple collector files into a single output file, for a specified scan point if applicable.
|
| |
|
std::string | filename_for_collector (const std::string &basepath, const std::string &basename, const std::string &extension="h5") |
| |
|
std::string | filename_for_collector_node (const std::string &basepath, const std::string &basename, int node, int nodes) |
| |
UDP readout collector class.
Definition in file CollectorClass.h.
| RL_API void copy_collector_parameters |
( |
const std::string & |
out_filename, |
|
|
const std::vector< std::string > & |
in_filenames |
|
) |
| |
Copy parameters from multiple collector files into a single output file, for a specified scan point if applicable.
- Parameters
-
| out_filename | the output file to create or open for writing |
| in_filenames | the input files to merge |
A parameter group, named "parameters", which is located in the file root group or a (point, points)-based collector group, will be copied from one of the input files to the output file.
| RL_API bool warn_about_another_build |
( |
const HighFive::File & |
file, |
|
|
const std::string & |
filename |
|
) |
| |
Warn on stderr if a collector file was written by another libreadout build.
Compares the file's version and revision stamps with this build's. Another build's file is still a valid file, so this only warns: combining it with this build's files is refused, and replaying it relies on record layouts and weight conventions not having changed in between. The file must carry both stamps (validation checks that first).
- Returns
- true if it warned
Referenced by ReaderSource::ReaderSource().