LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
get_failureToPut_flag.cc
Go to the documentation of this file.
3 
5 
6 namespace art {
7 
8  bool
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 }
T get(std::string const &key) const
Definition: ParameterSet.h:231
HLT enums.
bool get_failureToPut_flag(fhicl::ParameterSet const &scheduler_pset, fhicl::ParameterSet const &module_pset)