LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
DBIService.h
Go to the documentation of this file.
1
6
#ifndef IFDBISERVICE_H
7
#define IFDBISERVICE_H
8
9
#include <string>
10
11
#include "
art/Framework/Services/Registry/ActivityRegistry.h
"
12
#include "
art/Framework/Services/Registry/ServiceHandle.h
"
13
#include "
art/Framework/Services/Registry/ServiceDeclarationMacros.h
"
14
#include "
fhiclcpp/ParameterSet.h
"
15
#include "
nuevdb/EventDisplayBase/Reconfigurable.h
"
16
#include "
nuevdb/IFDatabase/Table.h
"
17
18
19
namespace
nutools
20
{
21
namespace
dbi
22
{
23
25
class
DBIService
:
public
evdb::Reconfigurable
26
{
27
public
:
28
// Get a RunHistoryService instance here
29
DBIService
(
const
fhicl::ParameterSet
& pset);
30
31
void
reconfigure
(
const
fhicl::ParameterSet
& pset);
32
33
Table
*
CreateTable
(std::string
tableName
=
""
,
34
std::string schemaName=
""
,
35
int
tableType=
nutools::dbi::kConditionsTable
,
36
int
dataSource=
nutools::dbi::kOffline
);
37
38
protected
:
39
int
fVerbosity
;
40
bool
fTimeQueries
;
41
bool
fTimeParsing
;
42
43
std::string
fWebServiceURL
;
44
std::string
fQueryEngineURL
;
45
std::string
fDBUser
;
46
47
};
48
49
}
50
}
51
52
DECLARE_ART_SERVICE
(
nutools::dbi::DBIService
, LEGACY)
53
54
#endif
55
Table.h
nutools::dbi::DBIService
Simple service to provide a RunHistory configured to the right run.
Definition:
DBIService.h:25
nutools::dbi::DBIService::DBIService
DBIService(const fhicl::ParameterSet &pset)
Definition:
DBI.cc:18
nutools
Simple service to provide a RunHistory configured to the right run.
Definition:
Column.cpp:14
ParameterSet.h
ServiceHandle.h
ServiceDeclarationMacros.h
nutools::dbi::DBIService::fTimeQueries
bool fTimeQueries
Definition:
DBIService.h:40
DECLARE_ART_SERVICE
#define DECLARE_ART_SERVICE(svc, scope)
Definition:
ServiceDeclarationMacros.h:77
nutools::dbi::DBIService::fDBUser
std::string fDBUser
Definition:
DBIService.h:45
nutools::dbi::DBIService::CreateTable
Table * CreateTable(std::string tableName="", std::string schemaName="", int tableType=nutools::dbi::kConditionsTable, int dataSource=nutools::dbi::kOffline)
Definition:
DBI.cc:36
Reconfigurable.h
Interface class to services that are intended to be reconfigurable through the event display...
nutools::dbi::DBIService::fTimeParsing
bool fTimeParsing
Definition:
DBIService.h:41
nutools::dbi::Table
Definition:
Table.h:47
nutools::dbi::DBIService::fQueryEngineURL
std::string fQueryEngineURL
Definition:
DBIService.h:44
ActivityRegistry.h
nutools::dbi::DBIService::fWebServiceURL
std::string fWebServiceURL
Definition:
DBIService.h:43
nutools::dbi::DBIService::fVerbosity
int fVerbosity
Definition:
DBIService.h:39
nutools::dbi::DBIService::reconfigure
void reconfigure(const fhicl::ParameterSet &pset)
Definition:
DBI.cc:24
nutools::dbi::kConditionsTable
Definition:
Table.h:27
tableName
std::string tableName
Definition:
tagConditionsTableInDB.cc:14
fhicl::ParameterSet
Definition:
ParameterSet.h:36
evdb::Reconfigurable
Definition:
Reconfigurable.h:13
nutools::dbi::kOffline
Definition:
Table.h:36
nuevdb
v1_09_08
source
nuevdb
IFDatabase
DBIService.h
Generated on Thu May 2 2024 20:59:53 for LArSoft by
1.8.11