Commit 5cf787a3 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Add cast to double

parent 00f7486d
Pipeline #575567 failed with stages
in 2 minutes and 19 seconds
...@@ -213,7 +213,7 @@ StatusCode BasicTracking::run(Clipboard* clipboard) { ...@@ -213,7 +213,7 @@ StatusCode BasicTracking::run(Clipboard* clipboard) {
avg_track_time += (Units::convert(trackCluster->timestamp(), "ns")); avg_track_time += (Units::convert(trackCluster->timestamp(), "ns"));
avg_track_time -= (Units::convert(trackCluster->globalZ(), "mm") / (299.792458)); avg_track_time -= (Units::convert(trackCluster->globalZ(), "mm") / (299.792458));
} }
track->setTimestamp(avg_track_time / track->nClusters()); track->setTimestamp(avg_track_time / static_cast<double>(track->nClusters()));
} }
// Save the tracks on the clipboard // Save the tracks on the clipboard
......
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