Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
nutools
old
IFDatabase
DBIService.h
Go to the documentation of this file.
1
///////////////////////////////////////////////////////////////////////////
2
/// \brief Simple service to provide a configurable Database table object
3
/// \author Christopher Backhouse - bckhouse@caltech.edu
4
//////////////////////////////////////////////////////////////////////////
5
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/ServiceMacros.h
"
14
#include "
fhiclcpp/ParameterSet.h
"
15
#include "nutools/EventDisplayBase/Reconfigurable.h"
16
#include "nutools/IFDatabase/Table.h"
17
18
19
namespace
nutools
20
{
21
namespace
dbi
22
{
23
24
/// \brief Simple service to provide a RunHistory configured to the right run
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
////////////////////////////////////////////////////////////////////////
string
std::string string
Definition:
nybbler.cc:12
nutools::dbi::DBIService
Simple service to provide a RunHistory configured to the right run.
Definition:
DBIService.h:25
DECLARE_ART_SERVICE
#define DECLARE_ART_SERVICE(svc, scope)
Definition:
ServiceMacros.h:86
nutools::dbi::DBIService::DBIService
DBIService(const fhicl::ParameterSet &pset)
Definition:
DBI_service.cc:18
nutools
Simple service to provide a RunHistory configured to the right run.
Definition:
Column.cpp:14
ParameterSet.h
ServiceHandle.h
nutools::dbi::DBIService::fTimeQueries
bool fTimeQueries
Definition:
DBIService.h:40
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_service.cc:36
nutools::dbi::DBIService::fTimeParsing
bool fTimeParsing
Definition:
DBIService.h:41
ServiceMacros.h
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_service.cc:24
nutools::dbi::kConditionsTable
Definition:
Table.h:27
tableName
std::string tableName
Definition:
tagConditionsTableInDB.cc:14
fhicl::ParameterSet
Definition:
ParameterSet.h:34
evdb::Reconfigurable
Definition:
Reconfigurable.h:13
nutools::dbi::kOffline
Definition:
Table.h:36
Generated by
1.8.11