Classes | Static Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
ArtServiceHelper Class Reference

#include <ArtServiceHelper.h>

Classes

struct  FileOnPath_t
 

Static Public Member Functions

static void load_services (std::string const &config)
 
static void load_services (std::string const &filename, FileOnPath_t)
 
static void load_services (std::istream &config)
 
static void load_services (fhicl::ParameterSet const &pset)
 
static void load (std::string const &filename)
 
static void load_services (std::string const &config)
 

Static Public Attributes

static constexpr FileOnPath_t FileOnPath {}
 

Private Member Functions

 ArtServiceHelper (fhicl::ParameterSet &&pset)
 
 ArtServiceHelper (fhicl::ParameterSet &&pset)
 

Private Attributes

art::ActivityRegistry activityRegistry_
 
art::detail::SharedResources sharedResources_
 
art::ServicesManager servicesManager_
 

Detailed Description

Definition at line 110 of file ArtServiceHelper.h.

Constructor & Destructor Documentation

ArtServiceHelper::ArtServiceHelper ( fhicl::ParameterSet &&  pset)
explicitprivate

Definition at line 7 of file ArtServiceHelper.cxx.

7  :
11 {
13 }
art::ActivityRegistry activityRegistry_
def move(depos, offset)
Definition: depos.py:107
art::ServicesManager servicesManager_
art::detail::SharedResources sharedResources_
ArtServiceHelper::ArtServiceHelper ( fhicl::ParameterSet &&  pset)
explicitprivate

Member Function Documentation

static void ArtServiceHelper::load ( std::string const &  filename)
inlinestatic

Definition at line 121 of file ArtServiceHelper.h.

121 { load_services(filename, FileOnPath_t{}); }
string filename
Definition: train.py:213
static void load_services(std::string const &config)
static void ArtServiceHelper::load_services ( std::string const &  config)
static
void ArtServiceHelper::load_services ( std::string const &  config)
static

Definition at line 15 of file ArtServiceHelper.cxx.

16 {
17  std::istringstream iss{config};
18  load_services(iss);
19 }
static void load_services(std::string const &config)
static Config * config
Definition: config.cpp:1054
void ArtServiceHelper::load_services ( std::string const &  filename,
FileOnPath_t   
)
static

Definition at line 28 of file ArtServiceHelper.cxx.

29 {
30  cet::filepath_lookup lookup{"FHICL_FILE_PATH"};
32 }
static ParameterSet make(intermediate_table const &tbl)
Definition: ParameterSet.cc:68
string filename
Definition: train.py:213
static void load_services(std::string const &config)
void ArtServiceHelper::load_services ( std::istream &  config)
static

Definition at line 21 of file ArtServiceHelper.cxx.

22 {
23  cet::filepath_lookup lookup{"FHICL_FILE_PATH"};
25  (fhicl::parse_document(config, lookup)));
26 }
static ParameterSet make(intermediate_table const &tbl)
Definition: ParameterSet.cc:68
static void load_services(std::string const &config)
static Config * config
Definition: config.cpp:1054
intermediate_table parse_document(std::string const &filename, cet::filepath_maker &maker)
Definition: parse.cc:720
void ArtServiceHelper::load_services ( fhicl::ParameterSet const &  pset)
static

Definition at line 34 of file ArtServiceHelper.cxx.

35 {
36  // Make sure each service has a value for the "service_type" parameter
37  fhicl::ParameterSet post_processed_pset;
38  auto const& input = pset.has_key("services") ? pset.get<fhicl::ParameterSet>("services") : pset;
39  auto const service_names = input.get_pset_names();
40  for (auto const& service_name : service_names) {
41  auto service_pset = input.get<fhicl::ParameterSet>(service_name);
42  service_pset.put("service_type", service_name);
43  post_processed_pset.put(service_name, service_pset);
44  }
45 
46  static ArtServiceHelper helper{std::move(post_processed_pset)};
47 }
static int input(void)
Definition: code.cpp:15695
def move(depos, offset)
Definition: depos.py:107
void put(std::string const &key)

Member Data Documentation

art::ActivityRegistry ArtServiceHelper::activityRegistry_
private

Definition at line 125 of file ArtServiceHelper.h.

constexpr FileOnPath_t ArtServiceHelper::FileOnPath {}
static

Definition at line 113 of file ArtServiceHelper.h.

art::ServicesManager ArtServiceHelper::servicesManager_
private

Definition at line 127 of file ArtServiceHelper.h.

art::detail::SharedResources ArtServiceHelper::sharedResources_
private

Definition at line 126 of file ArtServiceHelper.h.


The documentation for this class was generated from the following files: