Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Corryvreckan
Corryvreckan
Commits
5cf787a3
Commit
5cf787a3
authored
Nov 07, 2018
by
Simon Spannagel
Browse files
Add cast to double
parent
00f7486d
Pipeline
#575567
failed with stages
in 2 minutes and 19 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/modules/BasicTracking/BasicTracking.cpp
View file @
5cf787a3
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment