DatabaseRetrievalAlg.cxx
Go to the documentation of this file.
3 
4 #include "DatabaseRetrievalAlg.h"
5 
6 #include <string>
7 
8 namespace lariov {
9 
10  /// Configure using fhicl::ParameterSet
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.
std::string string
Definition: nybbler.cc:12
T get(std::string const &key) const
Definition: ParameterSet.h:271
p
Definition: test.py:223
Class def header for a class DatabaseRetrievalAlg.
Filters for channels, events, etc.