test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
CondTools
L1Trigger
interface
DataManager.h
Go to the documentation of this file.
1
#ifndef CondTools_L1Trigger_DataManager_h
2
#define CondTools_L1Trigger_DataManager_h
3
4
#include "
FWCore/Framework/interface/DataKeyTags.h
"
5
#include "
CondCore/CondDB/interface/Session.h
"
6
7
#include <string>
8
9
namespace
l1t
10
{
11
12
/* Helper class that provides common objects required to access Pool and Coral DB's.
13
* This class will initialize connections and makes sure that they are closed
14
* when it is destroyed.
15
* Connections are initialized, but user is still responsible for opening and commiting
16
* them
17
*/
18
class
DataManager
19
{
20
public
:
21
DataManager
() ;
22
explicit
DataManager
(
const
std::string
& connectString,
23
const
std::string
& authenticationPath,
24
bool
isOMDS =
false
);
25
virtual
~DataManager
();
26
27
void
connect
(
const
std::string
& connectString,
28
const
std::string
& authenticationPath,
29
bool
isOMDS =
false
);
30
void
setDebug
(
bool
debug
) ;
31
32
cond::persistency::Session
dbSession
()
33
{
return
session
; }
34
35
protected
:
36
//Returns type object for provided type name
37
edm::eventsetup::TypeTag
findType
(
const
std::string
&
type
) ;
38
39
// Database connection management
40
cond::persistency::Session
session
;
41
42
private
:
43
bool
debugFlag
=
false
;
44
};
45
46
}
47
48
#endif
Session.h
type
type
Definition:
HCALResponse.h:21
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
DataKeyTags.h
l1t::DataManager::connect
void connect(const std::string &connectString, const std::string &authenticationPath, bool isOMDS=false)
Definition:
DataManager.cc:24
l1t::DataManager::debugFlag
bool debugFlag
Definition:
DataManager.h:43
l1t::DataManager::DataManager
DataManager()
Definition:
DataManager.cc:13
l1t::DataManager::findType
edm::eventsetup::TypeTag findType(const std::string &type)
Definition:
DataManager.cc:45
debug
#define debug
Definition:
HDRShower.cc:19
l1t::DataManager
Definition:
DataManager.h:18
l1t::DataManager::dbSession
cond::persistency::Session dbSession()
Definition:
DataManager.h:32
cond::persistency::Session
Definition:
Session.h:59
l1t::DataManager::~DataManager
virtual ~DataManager()
Definition:
DataManager.cc:38
edm::eventsetup::heterocontainer::HCTypeTag
Definition:
HCTypeTag.h:38
l1t::DataManager::setDebug
void setDebug(bool debug)
Definition:
DataManager.cc:58
l1t::DataManager::session
cond::persistency::Session session
Definition:
DataManager.h:40
Generated for CMSSW Reference Manual by
1.8.5