Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
art
art
Framework
Core
detail
get_failureToPut_flag.cc
Go to the documentation of this file.
1
#include "
art/Framework/Core/detail/get_failureToPut_flag.h
"
2
#include "
fhiclcpp/ParameterSet.h
"
3
4
using
fhicl::ParameterSet
;
5
6
namespace
art::detail
{
7
bool
8
get_failureToPut_flag
(
ParameterSet
const
& scheduler_pset,
9
ParameterSet
const
& module_pset)
10
{
11
bool
const
global_flag{scheduler_pset.
get
<
bool
>(
"errorOnFailureToPut"
)};
12
bool
const
local_flag{module_pset.
get
<
bool
>(
"errorOnFailureToPut"
,
true
)};
13
return
!global_flag ? global_flag :
14
local_flag;
// global flag set to 'false' always wins
15
}
16
}
ParameterSet.h
art::detail
Definition:
AllowedConfiguration.h:77
fhicl::ParameterSet::get
T get(std::string const &key) const
Definition:
ParameterSet.h:231
art::detail::get_failureToPut_flag
bool get_failureToPut_flag(ParameterSet const &scheduler_pset, ParameterSet const &module_pset)
Definition:
get_failureToPut_flag.cc:8
get_failureToPut_flag.h
fhicl::ParameterSet
Definition:
ParameterSet.h:34
Generated by
1.8.11