Commit 0f541d48 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Remove global detector config manager, not necessary

parent 82a89d0b
......@@ -89,11 +89,10 @@ void Analysis::load() {
void Analysis::load_detectors() {
std::string detectors_file = global_config.getPath("detectors_file");
std::fstream file(detectors_file);
ConfigReader reader(file, detectors_file);
// Load the detector configuration
det_mgr_ = std::make_unique<corryvreckan::ConfigManager>(detectors_file);
for(auto& detector : det_mgr_->getConfigurations()) {
for(auto& detector : reader.getConfigurations()) {
LOG(INFO) << "Detector: " << detector.getName();
Detector* det_parm = new Detector(detector);
......
......@@ -70,7 +70,6 @@ namespace corryvreckan {
std::atomic<bool> m_terminate;
std::unique_ptr<corryvreckan::ConfigManager> conf_mgr_;
std::unique_ptr<corryvreckan::ConfigManager> det_mgr_;
Algorithm* create_algorithm(void* library, corryvreckan::Configuration config);
std::tuple<LogLevel, LogFormat> set_algorithm_before(const std::string&, const Configuration& config);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment