Main Page
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
d
e
f
l
m
o
p
s
t
u
v
Related Functions
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Package Documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
RecoLuminosity
LumiProducer
src
DBConfig.cc
Go to the documentation of this file.
1
#include "
RecoLuminosity/LumiProducer/interface/DBConfig.h
"
2
#include "RelationalAccess/ConnectionService.h"
3
#include "RelationalAccess/IConnectionServiceConfiguration.h"
4
#include "CoralKernel/Context.h"
5
#include "CoralKernel/IProperty.h"
6
#include "CoralKernel/IPropertyManager.h"
7
8
#include <filesystem>
9
10
namespace
lumi
{
11
const
std::string
defaultAuthFileName
=
"authentication.xml"
;
12
}
13
lumi::DBConfig::DBConfig
(coral::ConnectionService& svc) : m_svc(&svc) {}
14
lumi::DBConfig::~DBConfig
() {}
15
void
lumi::DBConfig::setAuthentication
(
const
std::string
&
authPath
) {
16
std::filesystem::path
filesystemAuthPath(
authPath
);
17
if
(std::filesystem::is_directory(filesystemAuthPath)) {
18
filesystemAuthPath /=
std::filesystem::path
(
lumi::defaultAuthFileName
);
19
}
20
std::string
authFileName = filesystemAuthPath.string();
21
coral::Context::instance
().PropertyManager().property(
"AuthenticationFile"
)->set(authFileName);
22
coral::Context::instance
().loadComponent(
"CORAL/Services/XMLAuthenticationService"
);
23
}
24
std::string
lumi::DBConfig::trueConnectStr
(
const
std::string
& usercon) {
25
//empty for now
26
return
usercon;
27
}
lumi_dqm_sourceclient-live_cfg.authPath
authPath
Definition:
lumi_dqm_sourceclient-live_cfg.py:33
lumi::defaultAuthFileName
const std::string defaultAuthFileName
Definition:
DBConfig.cc:11
lumi::DBConfig::DBConfig
DBConfig(coral::ConnectionService &svc)
Definition:
DBConfig.cc:13
lumi::DBConfig::setAuthentication
void setAuthentication(const std::string &authPath)
Definition:
DBConfig.cc:15
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
instance
static PFTauRenderPlugin instance
Definition:
PFTauRenderPlugin.cc:70
lumi::DBConfig::trueConnectStr
std::string trueConnectStr(const std::string &usercon)
Definition:
DBConfig.cc:24
DBConfig.h
castor_dqm_sourceclient_file_cfg.path
path
Definition:
castor_dqm_sourceclient_file_cfg.py:37
lumi::DBConfig::~DBConfig
~DBConfig()
Definition:
DBConfig.cc:14
lumi
Definition:
LumiSectionData.h:20
Generated for CMSSW Reference Manual by
1.8.16