30 #ifndef LARCOREALG_GEOMETRY_STANDALONEBASICSETUP_H
31 #define LARCOREALG_GEOMETRY_STANDALONEBASICSETUP_H
34 #include "messagefacility/MessageLogger/MessageLogger.h"
35 #include "fhiclcpp/ParameterSet.h"
36 #include "cetlib/filepath_maker.h"
45 namespace standalone {
58 (std::string configPath, cet::filepath_maker& lookupPolicy);
92 (fhicl::ParameterSet
const& pset, std::string applName =
"standalone");
106 (std::string configPath, cet::filepath_maker& lookupPolicy)
108 fhicl::ParameterSet pset;
109 pset = fhicl::ParameterSet::make(configPath, lookupPolicy);
116 (std::string configPath)
118 cet::filepath_lookup_after1 policy(
"FHICL_FILE_PATH");
125 (fhicl::ParameterSet
const& pset, std::string applName )
127 mf::StartMessageFacility(pset.get<fhicl::ParameterSet>(
"services.message"));
128 mf::SetApplicationName(applName);
129 mf::SetContextSinglet(
"main");
130 mf::SetContextIteration(
"");
136 #endif // LARCOREALG_GEOMETRY_STANDALONEBASICSETUP_H
void SetupMessageFacility(fhicl::ParameterSet const &pset, std::string applName="standalone")
Sets up the message facility service.
fhicl::ParameterSet ParseConfiguration(std::string configPath, cet::filepath_maker &lookupPolicy)
Parses a FHiCL configuration file.