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
672cf81f
Commit
672cf81f
authored
Nov 28, 2019
by
Simon Spannagel
Browse files
Add aliases for timing_cut to AnalysisAPXTiming and Prealignment
parent
70c8dbee
Pipeline
#1259405
passed with stages
in 13 minutes and 26 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/modules/AnalysisTimingATLASpix/AnalysisTimingATLASpix.cpp
View file @
672cf81f
...
...
@@ -21,6 +21,9 @@ using namespace corryvreckan;
AnalysisTimingATLASpix
::
AnalysisTimingATLASpix
(
Configuration
config
,
std
::
shared_ptr
<
Detector
>
detector
)
:
Module
(
std
::
move
(
config
),
detector
)
{
// Backwards compatibilty: also allow timing_cut to be used for time_cut_abs
m_config
.
setAlias
(
"time_cut_abs"
,
"timing_cut"
,
true
);
using
namespace
ROOT
::
Math
;
m_detector
=
detector
;
if
(
config
.
count
({
"time_cut_rel"
,
"time_cut_abs"
})
>
1
)
{
...
...
src/modules/Prealignment/Prealignment.cpp
View file @
672cf81f
...
...
@@ -8,6 +8,10 @@ Prealignment::Prealignment(Configuration config, std::shared_ptr<Detector> detec
max_correlation_rms
=
m_config
.
get
<
double
>
(
"max_correlation_rms"
,
Units
::
get
<
double
>
(
6
,
"mm"
));
damping_factor
=
m_config
.
get
<
double
>
(
"damping_factor"
,
1.0
);
// Backwards compatibilty: also allow timing_cut to be used for time_cut_abs
m_config
.
setAlias
(
"time_cut_abs"
,
"timing_cut"
,
true
);
if
(
m_config
.
count
({
"time_cut_rel"
,
"time_cut_abs"
})
>
1
)
{
throw
InvalidCombinationError
(
m_config
,
{
"time_cut_rel"
,
"time_cut_abs"
},
"Absolute and relative time cuts are mutually exclusive."
);
...
...
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