Namespaces | Functions
StandaloneBasicSetup.h File Reference

Collection of functions for quick setup of basic facilities. More...

#include "messagefacility/MessageLogger/MessageLogger.h"
#include "fhiclcpp/ParameterSet.h"
#include "cetlib/filepath_maker.h"
#include <string>

Go to the source code of this file.

Namespaces

 lar
 LArSoft-specific namespace.
 
 lar::standalone
 Utilities for use in an environment without art.
 

Functions

fhicl::ParameterSet lar::standalone::ParseConfiguration (std::string configPath, cet::filepath_maker &lookupPolicy)
 Parses a FHiCL configuration file. More...
 
fhicl::ParameterSet lar::standalone::ParseConfiguration (std::string configPath)
 Parses a FHiCL configuration file. More...
 
void lar::standalone::SetupMessageFacility (fhicl::ParameterSet const &pset, std::string applName="standalone")
 Sets up the message facility service. More...
 

Detailed Description

Collection of functions for quick setup of basic facilities.

Author
Gianluca Petrillo (petri.nosp@m.llo@.nosp@m.fnal..nosp@m.gov)
Date
June 22, 2017

Currently the following functionality is provided:

A complete basic setup for my test may look like:

using namespace lar::standalone;
// parse the configuration file taken from the first command line argument:
// set up the message facility service
SetupMessageFacility(pset, "my test");

Additional setup utilities may be available in lar::standalone namespace. Also, some service providers can be set up using testingsetupProvider() functions (the function itself is defined inProviderTestHelpers.h`).

Currently this is a header-only library.

Definition in file StandaloneBasicSetup.h.