Commit 204e5e94 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Store generated detectors in the Analysis class member

parent 8ebb80e8
......@@ -40,7 +40,7 @@ namespace corryvreckan {
IFLOG(TRACE) {
std::stringstream det;
for(auto& d : m_detectors) {
det << d->name();
det << d->name() << ", ";
}
LOG(TRACE) << "Algorithm determined to run on detectors: " << det.str();
}
......
......@@ -154,6 +154,8 @@ void Analysis::load_detectors() {
}
}
// Add the new detector to the global list:
detectors.push_back(det_parm);
m_parameters->detector[detector.getName()] = det_parm;
m_parameters->registerDetector(detector.getName());
}
......
Supports Markdown
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