14 if (!config)
throw std::runtime_error(
"EventBuilderConfig: no configuration node");
15 for (YAML::const_iterator it = config.begin(); it != config.end(); ++it) {
17 if (!det.has_value()) {
18 throw std::runtime_error(
"EventBuilderConfig: passing a non-existing moduleID: " + it->first.as<std::string>());
20 auto lower = it->second[0].as<
double>();
21 auto upper = it->second[1].as<
double>();
22 fWindows[det.value()] = std::make_pair(lower, upper);