Skip to content
Snippets Groups Projects
Commit 828fd563 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

ELEUDAQ2: fix declaration of EUDAQ2 config object

parent 67f950cf
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,9 @@ EventLoaderEUDAQ2::EventLoaderEUDAQ2(Configuration config, std::shared_ptr<Detec
m_shift_triggers = m_config.get<int>("shift_triggers", 0);
m_inclusive = m_config.get("inclusive", true);
// Prepare EUDAQ2 config object
eudaq::Configuration cfg;
// Provide the calibration file specified in the detector geometry:
// NOTE: This should go first to allow overwriting the calibration_file key in the module config
auto calibration_file = m_detector->calibrationFile();
......@@ -36,7 +39,6 @@ EventLoaderEUDAQ2::EventLoaderEUDAQ2(Configuration config, std::shared_ptr<Detec
// Forward all settings to EUDAQ
// WARNING: the EUDAQ Configuration class is not very flexible and e.g. booleans have to be passed as 1 and 0.
eudaq::Configuration cfg;
auto configs = m_config.getAll();
for(const auto& key : configs) {
LOG(DEBUG) << "Forwarding key \"" << key.first << " = " << key.second << "\" to EUDAQ converter";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment