Commit 8ae4ab87 authored by Paul Schuetze's avatar Paul Schuetze
Browse files

Bugfix in Tracking4D, accepting tracks with an angle

parent 38145c61
......@@ -289,6 +289,11 @@ StatusCode Tracking4D::run(std::shared_ptr<Clipboard> clipboard) {
double norm = (distanceX * distanceX) / (spatial_cuts_[det].x() * spatial_cuts_[det].x()) +
(distanceY * distanceY) / (spatial_cuts_[det].y() * spatial_cuts_[det].y());
// If this is the second cluster of the track, keep it for now
if(refTrack->nClusters() == 1 && ne == 0) {
closestClusterDistance = distance;
closestCluster = newCluster;
} else {
if(norm > 1) {
continue;
}
......@@ -299,6 +304,7 @@ StatusCode Tracking4D::run(std::shared_ptr<Clipboard> clipboard) {
closestCluster = newCluster;
}
}
}
if(closestCluster == nullptr) {
LOG(DEBUG) << "No cluster within spatial cut.";
......
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