Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Corryvreckan
Corryvreckan
Commits
6991ce8f
Commit
6991ce8f
authored
Nov 07, 2018
by
Simon Spannagel
Browse files
Merge branch 'master' into moduletypes
parents
869dbbbe
00f7486d
Pipeline
#575561
failed with stages
in 2 minutes and 34 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/modules/Tracking4D/Tracking4D.cpp
View file @
6991ce8f
...
...
@@ -228,6 +228,14 @@ StatusCode Tracking4D::run(Clipboard* clipboard) {
if
(
trackCluster
->
rowWidth
()
==
3
)
residualsYwidth3
[
detectorID
]
->
Fill
(
intercept
.
Y
()
-
trackCluster
->
globalY
());
}
// 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
));
}
track
->
setTimestamp
(
avg_track_time
/
track
->
nClusters
());
}
// 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