get_failureToPut_flag.cc
Go to the documentation of this file.
3 
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 }
T get(std::string const &key) const
Definition: ParameterSet.h:231
bool get_failureToPut_flag(ParameterSet const &scheduler_pset, ParameterSet const &module_pset)