ArtServiceHelper.cxx
Go to the documentation of this file.
3 
5 
6 namespace {
7  auto fully_processed(fhicl::ParameterSet&& pset)
8  {
9  // Make sure each service has a value for the "service_type" parameter
11  auto const& input = pset.has_key("services") ? pset.get<fhicl::ParameterSet>("services") : pset;
12  auto const service_names = input.get_pset_names();
13  for (auto const& service_name : service_names) {
14  auto service_pset = input.get<fhicl::ParameterSet>(service_name);
15  service_pset.put("service_type", service_name);
16  result.put(service_name, service_pset);
17  }
18  return result;
19  }
20 }
21 
23  activityRegistry_{},
26 {
28 }
29 
31 {
32  cet::filepath_lookup lookup{"FHICL_FILE_PATH"};
33  std::istringstream is{config};
34  auto table = fhicl::parse_document(is, lookup);
35  static ArtServiceHelper helper{fully_processed(fhicl::ParameterSet::make(table))};
36 }
static QCString result
std::string string
Definition: nybbler.cc:12
static ParameterSet make(intermediate_table const &tbl)
Definition: ParameterSet.cc:68
static void load_services(std::string const &config)
art::ActivityRegistry activityRegistry_
static int input(void)
Definition: code.cpp:15695
static Config * config
Definition: config.cpp:1054
def move(depos, offset)
Definition: depos.py:107
art::ServicesManager servicesManager_
intermediate_table parse_document(std::string const &filename, cet::filepath_maker &maker)
Definition: parse.cc:720
ArtServiceHelper(fhicl::ParameterSet &&pset)
art::detail::SharedResources sharedResources_
void put(std::string const &key)