1 #include "art/Framework/Services/Registry/ServiceRegistry.h"
2 #include "fhiclcpp/intermediate_table.h"
7 auto fully_processed(fhicl::ParameterSet&& pset)
10 fhicl::ParameterSet result;
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);
25 servicesManager_{std::move(pset), activityRegistry_, sharedResources_}
27 servicesManager_.forceCreation();
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))};
static void load_services(std::string const &config)
ArtServiceHelper(fhicl::ParameterSet &&pset)