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
65aeac06
Commit
65aeac06
authored
Dec 18, 2018
by
Simon Spannagel
Browse files
Fix cases with optional path
parent
ecf82e0e
Changes
2
Show whitespace changes
Inline
Side-by-side
src/modules/EventLoaderATLASpix/EventLoaderATLASpix.cpp
View file @
65aeac06
...
...
@@ -10,7 +10,10 @@ EventLoaderATLASpix::EventLoaderATLASpix(Configuration config, std::shared_ptr<D
m_timewalkCorrectionFactors
=
m_config
.
getArray
<
double
>
(
"timewalkCorrectionFactors"
,
std
::
vector
<
double
>
());
m_inputDirectory
=
m_config
.
getPath
(
"inputDirectory"
);
if
(
m_config
.
has
(
"calibrationFile"
))
{
m_calibrationFile
=
m_config
.
getPath
(
"calibrationFile"
);
}
m_clockCycle
=
m_config
.
get
<
double
>
(
"clockCycle"
,
static_cast
<
double
>
(
Units
::
convert
(
6.25
,
"ns"
)));
...
...
src/modules/EventLoaderTimepix3/EventLoaderTimepix3.cpp
View file @
65aeac06
...
...
@@ -26,8 +26,10 @@ EventLoaderTimepix3::EventLoaderTimepix3(Configuration config, std::shared_ptr<D
m_numberPixelHits
=
m_config
.
get
<
size_t
>
(
"number_of_pixelhits"
,
2000
);
// Calibration parameters
if
(
m_config
.
has
(
"calibrationPath"
))
{
calibrationPath
=
m_config
.
getPath
(
"calibrationPath"
,
""
);
threshold
=
m_config
.
get
<
std
::
string
>
(
"threshold"
,
""
);
}
}
void
EventLoaderTimepix3
::
initialise
()
{
...
...
Write
Preview
Supports
Markdown
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