mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-05-06 05:24:14 +02:00
Add configuration loading code to core-buffer
This commit is contained in:
@@ -6,6 +6,20 @@
|
||||
|
||||
namespace BufferUtils
|
||||
{
|
||||
|
||||
struct DetectorConfig {
|
||||
const std::string streamvis_address;
|
||||
const int reduction_factor_streamvis;
|
||||
const std::string live_analysis_address;
|
||||
const int reduction_factor_live_analysis;
|
||||
const std::string PEDE_FILENAME;
|
||||
const std::string GAIN_FILENAME;
|
||||
const std::string DETECTOR_NAME;
|
||||
const int n_modules;
|
||||
const std::string pulse_address;
|
||||
};
|
||||
|
||||
|
||||
std::string get_filename(
|
||||
const std::string& detector_folder,
|
||||
const std::string& module_name,
|
||||
@@ -23,6 +37,8 @@ namespace BufferUtils
|
||||
void* ctx, const std::string& detector_name, const int source_id);
|
||||
void* connect_socket(
|
||||
void* ctx, const std::string& detector_name, const int source_id);
|
||||
|
||||
DetectorConfig read_json_config(const std::string& filename);
|
||||
}
|
||||
|
||||
#endif //BUFFER_UTILS_HPP
|
||||
|
||||
Reference in New Issue
Block a user