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
017ba963
Commit
017ba963
authored
Jun 28, 2018
by
Simon Spannagel
Browse files
Print updated detector configuration with units, this fixes #13
parent
8519cc50
Pipeline
#428868
passed with stages
in 7 minutes and 20 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/core/detector/Detector.cpp
View file @
017ba963
...
...
@@ -155,18 +155,17 @@ Configuration Detector::getConfiguration() {
Configuration
config
(
name
());
config
.
set
(
"type"
,
m_detectorType
);
config
.
set
(
"position"
,
m_displacement
);
config
.
set
(
"postst"
,
Units
::
display
(
m_displacement
,
{
"um"
,
"mm"
}));
config
.
set
(
"position"
,
m_displacement
,
{
"um"
,
"mm"
});
config
.
set
(
"orientation_mode"
,
m_orientation_mode
);
config
.
set
(
"orientation"
,
m_orientation
);
config
.
set
(
"orientation"
,
m_orientation
,
{
"deg"
}
);
auto
npixels
=
ROOT
::
Math
::
DisplacementVector2D
<
Cartesian2D
<
int
>>
(
m_nPixelsX
,
m_nPixelsY
);
config
.
set
(
"number_of_pixels"
,
npixels
);
// Size of the pixels
config
.
set
(
"pixel_pitch"
,
m_pitch
);
config
.
set
(
"pixel_pitch"
,
m_pitch
,
{
"um"
}
);
if
(
m_timingOffset
!=
0.
)
{
config
.
set
(
"time_offset"
,
m_timingOffset
);
config
.
set
(
"time_offset"
,
m_timingOffset
,
{
"ns"
,
"us"
,
"ms"
,
"s"
}
);
}
if
(
!
m_maskfile_name
.
empty
())
{
...
...
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