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

Bugfix in Tracking4D, accepting tracks with an angle

parent 38145c61
......@@ -289,14 +289,20 @@ 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(norm > 1) {
continue;
}
// If this is the closest keep it
if(distance < closestClusterDistance) {
// 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;
}
// If this is the closest keep it
if(distance < closestClusterDistance) {
closestClusterDistance = distance;
closestCluster = newCluster;
}
}
}
......
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