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
afcd34f9
Commit
afcd34f9
authored
Oct 12, 2017
by
Simon Spannagel
Browse files
Implement masking of detectors
parent
1103e3e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/core/Analysis.cpp
View file @
afcd34f9
...
...
@@ -357,6 +357,20 @@ Algorithm* Analysis::create_algorithm(void* library, Configuration config) {
}
}
// Check for potentially masked detectors:
if
(
config
.
has
(
"masked"
))
{
std
::
vector
<
std
::
string
>
mask_list
=
config
.
getArray
<
std
::
string
>
(
"masked"
);
for
(
auto
it
=
algorithm_det
.
begin
();
it
!=
algorithm_det
.
end
();)
{
// Remove detectors which are masked:
if
(
std
::
find
(
mask_list
.
begin
(),
mask_list
.
end
(),
(
*
it
)
->
name
())
!=
mask_list
.
end
())
{
it
=
algorithm_det
.
erase
(
it
);
}
else
{
it
++
;
}
}
}
// Set the log section header
std
::
string
old_section_name
=
Log
::
getSection
();
std
::
string
section_name
=
"C:"
;
...
...
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