LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
DatabaseRetrievalAlg.cxx
Go to the documentation of this file.
3 
4 #include "DatabaseRetrievalAlg.h"
5 
6 #include <string>
7 
8 namespace lariov {
9 
12  {
13 
14  std::string foldername = p.get<std::string>("DBFolderName");
15  std::string url = p.get<std::string>("DBUrl");
16  std::string url2 = p.get<std::string>("DBUrl2", "");
17  std::string tag = p.get<std::string>("DBTag", "");
18  bool usesqlite = p.get<bool>("UseSQLite", false);
19  bool testmode = p.get<bool>("TestMode", false);
20  fFolder.reset(new DBFolder(foldername, url, url2, tag, usesqlite, testmode));
21  }
22 }
std::unique_ptr< DBFolder > fFolder
virtual void Reconfigure(fhicl::ParameterSet const &p)
Configure using fhicl::ParameterSet.
T get(std::string const &key) const
Definition: ParameterSet.h:314
Class def header for a class DatabaseRetrievalAlg.
Filters for channels, events, etc.