Commit afcd34f9 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Implement masking of detectors

parent 1103e3e7
......@@ -357,6 +357,20 @@ Algorithm* Analysis::create_algorithm(void* library, Configuration config) {
}
}
// Check for potentially masked detectors:
if(config.has("masked")) {
std::vector<std::string> mask_list = config.getArray<std::string>("masked");
for(auto it = algorithm_det.begin(); it != algorithm_det.end();) {
// Remove detectors which are masked:
if(std::find(mask_list.begin(), mask_list.end(), (*it)->name()) != mask_list.end()) {
it = algorithm_det.erase(it);
} else {
it++;
}
}
}
// Set the log section header
std::string old_section_name = Log::getSection();
std::string section_name = "C:";
......
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