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

Merge branch 'AlignmentDUTResidual_only_keep_associated' into 'master'

AlignmentDUTResidual: Only keep tracks with associated cluster

See merge request !458
parents b7163baf 1c9e94b3
Pipeline #3045977 passed with stages
in 20 minutes and 19 seconds
......@@ -85,6 +85,11 @@ StatusCode AlignmentDUTResidual::run(const std::shared_ptr<Clipboard>& clipboard
// Make a local copy and store it
for(auto& track : tracks) {
auto associated_clusters = track->getAssociatedClusters(m_detector->getName());
// Do not put tracks without clusters on the DUT to the persistent storage
if(associated_clusters.empty()) {
LOG(TRACE) << "Discarding track for DUT alignment since no cluster associated";
continue;
}
// Apply selection to tracks for alignment
if(m_pruneTracks) {
......
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