Public Member Functions | Public Attributes | Private Member Functions | List of all members
fhiclcpp_types::FixtureBase< Config > Struct Template Reference

#include <FixtureBase.h>

Public Member Functions

 FixtureBase (std::string const &filename)
 

Public Attributes

fhicl::ParameterSet pset
 
fhicl::Table< Configconfig
 

Private Member Functions

fhicl::ParameterSet get_pset (std::string const &filename)
 

Detailed Description

template<typename Config>
struct fhiclcpp_types::FixtureBase< Config >

Definition at line 16 of file FixtureBase.h.

Constructor & Destructor Documentation

template<typename Config >
fhiclcpp_types::FixtureBase< Config >::FixtureBase ( std::string const &  filename)
inline

Definition at line 18 of file FixtureBase.h.

20  , config{pset.get<fhicl::ParameterSet>("pset"), {}}
21  {}
string filename
Definition: train.py:213
T get(std::string const &key) const
Definition: ParameterSet.h:271
fhicl::Table< Config > config
Definition: FixtureBase.h:24
fhicl::ParameterSet pset
Definition: FixtureBase.h:23
fhicl::ParameterSet get_pset(std::string const &filename)
Definition: FixtureBase.h:28

Member Function Documentation

template<typename Config >
fhicl::ParameterSet fhiclcpp_types::FixtureBase< Config >::get_pset ( std::string const &  filename)
inlineprivate

Definition at line 28 of file FixtureBase.h.

29  {
30  using namespace fhicl;
31  putenv(const_cast<char*>("FHICL_FILE_PATH=./test:."));
32  cet::filepath_lookup policy("FHICL_FILE_PATH");
33  std::string cfg_in(filename);
34  return ParameterSet::make(cfg_in, policy);
35  }
std::string string
Definition: nybbler.cc:12
string filename
Definition: train.py:213
unique_ptr< InputSource > make(ParameterSet const &conf, InputSourceDescription &desc)

Member Data Documentation

template<typename Config >
fhicl::Table<Config> fhiclcpp_types::FixtureBase< Config >::config

Definition at line 24 of file FixtureBase.h.

template<typename Config >
fhicl::ParameterSet fhiclcpp_types::FixtureBase< Config >::pset

Definition at line 23 of file FixtureBase.h.


The documentation for this struct was generated from the following file: