Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
larevt
larevt
CalibrationDBI
Providers
DatabaseRetrievalAlg.cxx
Go to the documentation of this file.
1
#include "
fhiclcpp/ParameterSet.h
"
2
#include "
larevt/CalibrationDBI/Providers/DBFolder.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
}
lariov::DatabaseRetrievalAlg::fFolder
std::unique_ptr< DBFolder > fFolder
Definition:
DatabaseRetrievalAlg.h:68
lariov::DatabaseRetrievalAlg::Reconfigure
virtual void Reconfigure(fhicl::ParameterSet const &p)
Configure using fhicl::ParameterSet.
Definition:
DatabaseRetrievalAlg.cxx:11
string
std::string string
Definition:
nybbler.cc:12
tag
Definition:
ProxyBaseTest_module.cc:152
ParameterSet.h
ECLAPI.url
url
Definition:
ECLAPI.py:246
fhicl::ParameterSet::get
T get(std::string const &key) const
Definition:
ParameterSet.h:271
test.p
p
Definition:
test.py:223
DatabaseRetrievalAlg.h
Class def header for a class DatabaseRetrievalAlg.
lariov
Filters for channels, events, etc.
Definition:
ChannelStatusServiceTool.h:19
DBFolder.h
lariov::DBFolder
Definition:
DBFolder.h:15
fhicl::ParameterSet
Definition:
ParameterSet.h:36
Generated by
1.8.11