Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Corryvreckan
Corryvreckan
Commits
a91a753a
Commit
a91a753a
authored
Oct 31, 2017
by
Morag Williams
Browse files
Correction to prealignment displacements in x and y.
parent
1469b4f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/algorithms/Prealignment.cpp
View file @
a91a753a
...
...
@@ -107,8 +107,10 @@ void Prealignment::finalise() {
double
mean_Y
=
correlationY
[
detector
->
name
()]
->
GetMean
();
LOG
(
INFO
)
<<
"Detector "
<<
detector
->
name
()
<<
": x = "
<<
mean_X
<<
" , y = "
<<
mean_Y
;
LOG
(
INFO
)
<<
"Move in x by = "
<<
mean_X
*
damping_factor
<<
" , and in y by = "
<<
mean_Y
*
damping_factor
;
detector
->
displacementX
(
damping_factor
*
mean_X
);
detector
->
displacementY
(
damping_factor
*
mean_Y
);
double
x
=
detector
->
displacementX
();
double
y
=
detector
->
displacementY
();
detector
->
displacementX
(
x
+
damping_factor
*
mean_X
);
detector
->
displacementY
(
y
+
damping_factor
*
mean_Y
);
}
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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