Commit b2bc159c authored by Daniel Hynds's avatar Daniel Hynds
Browse files

sort detectors in z after config reading

parent 33cd03f3
......@@ -98,8 +98,9 @@ void Analysis::load_detectors() {
LOG(STATUS) << "Loaded " << detectors.size() << " detectors";
// Finally, sort the list of detectors by z position (from lowest to highest)
// FIXME reimplement - std::sort(m_parameters->detectors.begin(), m_parameters->detectors.end(), sortByZ);
//
std::sort(detectors.begin(), detectors.end(), [](Detector* det1, Detector* det2){ return det1->displacementZ() < det2->displacementZ();});
for(auto& detector : detectors) LOG(WARNING) << detector->name();
}
void Analysis::load_algorithms() {
......
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