All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DatabaseRetrievalAlg.cxx
Go to the documentation of this file.
1 #include "fhiclcpp/ParameterSet.h"
3 
4 #include "DatabaseRetrievalAlg.h"
5 
6 #include <string>
7 
8 namespace lariov {
9 
10  /// Configure using fhicl::ParameterSet
11  void DatabaseRetrievalAlg::Reconfigure(fhicl::ParameterSet const& p) {
12 
13  std::string foldername = p.get<std::string>("DBFolderName");
14  std::string url = p.get<std::string>("DBUrl");
15  std::string url2 = p.get<std::string>("DBUrl2", "");
16  std::string tag = p.get<std::string>("DBTag", "");
17  bool usesqlite = p.get<bool>("UseSQLite", false);
18  bool testmode = p.get<bool>("TestMode", false);
19  fFolder.reset(new DBFolder(foldername, url, url2, tag, usesqlite, testmode));
20  }
21 }
std::unique_ptr< DBFolder > fFolder
virtual void Reconfigure(fhicl::ParameterSet const &p)
Configure using fhicl::ParameterSet.
pdgs p
Definition: selectors.fcl:22
Class def header for a class DatabaseRetrievalAlg.