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
0fec02d0
Commit
0fec02d0
authored
Jan 31, 2019
by
Simon Spannagel
Browse files
Prealignment: move all but reference, not the reference itself
parent
65c1e163
Pipeline
#684340
passed with stages
in 18 minutes and 11 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/modules/Prealignment/Prealignment.cpp
View file @
0fec02d0
...
...
@@ -6,7 +6,6 @@ using namespace std;
Prealignment
::
Prealignment
(
Configuration
config
,
std
::
shared_ptr
<
Detector
>
detector
)
:
Module
(
std
::
move
(
config
),
detector
),
m_detector
(
detector
)
{
LOG
(
INFO
)
<<
"Starting prealignment of detectors"
;
max_correlation_rms
=
m_config
.
get
<
double
>
(
"max_correlation_rms"
,
static_cast
<
double
>
(
Units
::
convert
(
6.0
,
"mm"
)));
damping_factor
=
m_config
.
get
<
double
>
(
"damping_factor"
,
1.0
);
timingCut
=
m_config
.
get
<
double
>
(
"timing_cut"
,
static_cast
<
double
>
(
Units
::
convert
(
100
,
"ns"
)));
...
...
@@ -97,7 +96,8 @@ void Prealignment::finalise() {
<<
" , RMS Y = "
<<
Units
::
display
(
rmsY
,
{
"mm"
,
"um"
});
}
if
(
m_detector
->
isReference
())
{
// Move all but the reference:
if
(
!
m_detector
->
isReference
())
{
double
mean_X
=
correlationX
->
GetMean
();
double
mean_Y
=
correlationY
->
GetMean
();
LOG
(
INFO
)
<<
"Detector "
<<
m_detector
->
name
()
<<
": x = "
<<
Units
::
display
(
mean_X
,
{
"mm"
,
"um"
})
...
...
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