13 addService(std::string
const& name,
ParameterSets& service_set)
16 tmp.
put(
"service_type", name);
18 service_set.emplace_back(std::move(tmp));
22 addService(std::string
const& name,
28 service_set.emplace_back(std::move(tmp));
31 addService(name, service_set);
39 bool const wantTracer{services.get<
bool>(
"scheduler.wantTracer",
false)};
40 services.erase(
"scheduler");
44 if (wantTracer && !services.has_key(
"Tracer")) {
45 addService(
"Tracer", service_set);
49 addService(
"FileCatalogMetadata", services, service_set);
50 services.erase(
"FileCatalogMetadata");
53 addService(
"DatabaseConnection", services, service_set);
54 services.erase(
"DatabaseConnection");
57 for (
auto const& key : services.get_pset_names()) {
58 addService(key, services, service_set);
67 : serviceToken_{serviceToken}
static ParameterSetID const & put(ParameterSet const &ps)
std::vector< ParameterSet > ParameterSets
bool get_if_present(std::string const &key, T &value) const
ServiceDirector(fhicl::ParameterSet &&services, ActivityRegistry &areg, ServiceToken &token)
void put(std::string const &key)
static ServiceToken createSet(ParameterSets const &, ActivityRegistry &)
ServiceToken & serviceToken_