Commit 884c64d9 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Merge branch 'master' into moduletypes

parents 805c6f84 6e940573
Pipeline #575580 passed with stages
in 6 minutes and 12 seconds
......@@ -232,8 +232,8 @@ StatusCode Tracking4D::run(Clipboard* clipboard) {
// Improve the track timestamp by taking the average of all planes
double avg_track_time = 0;
for(auto& trackCluster : trackClusters) {
avg_track_time += (Units::convert(trackCluster->timestamp(), "ns"));
avg_track_time -= (Units::convert(trackCluster->globalZ(), "mm") / (299.792458));
avg_track_time += static_cast<double>(Units::convert(trackCluster->timestamp(), "ns"));
avg_track_time -= static_cast<double>(Units::convert(trackCluster->globalZ(), "mm") / (299.792458));
}
track->setTimestamp(avg_track_time / static_cast<double>(track->nClusters()));
}
......
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