LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
{
7
8
bool
9
detail::get_failureToPut_flag
(
ParameterSet
const
& scheduler_pset,
10
ParameterSet
const
& module_pset)
11
{
12
bool
const
global_flag{scheduler_pset.
get
<
bool
>(
"errorOnFailureToPut"
)};
13
bool
const
local_flag{module_pset.
get
<
bool
>(
"errorOnFailureToPut"
,
true
)};
14
return
!global_flag ? global_flag :
15
local_flag;
// global flag set to 'false' always wins
16
}
17
}
ParameterSet.h
fhicl::ParameterSet::get
T get(std::string const &key) const
Definition:
ParameterSet.h:231
get_failureToPut_flag.h
art
HLT enums.
Definition:
ServiceProviderWrappers.h:36
art::detail::get_failureToPut_flag
bool get_failureToPut_flag(fhicl::ParameterSet const &scheduler_pset, fhicl::ParameterSet const &module_pset)
Definition:
get_failureToPut_flag.cc:9
fhicl::ParameterSet
Definition:
ParameterSet.h:34
art
Framework
Core
detail
get_failureToPut_flag.cc
Generated on Wed Dec 12 2018 14:42:31 for LArSoft by
1.8.11