src
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
/* Helper class that provides common objects required to access Pool and Coral DB's.
12
* This class will initialize connections and makes sure that they are closed
13
* when it is destroyed.
14
* Connections are initialized, but user is still responsible for opening and commiting
15
* them
16
*/
17
class
DataManager
{
18
public
:
19
DataManager
();
20
explicit
DataManager
(
const
std::string
& connectString,
const
std::string
&
authenticationPath
,
bool
isOMDS =
false
);
21
virtual
~DataManager
();
22
23
void
connect
(
const
std::string
& connectString,
const
std::string
&
authenticationPath
,
bool
isOMDS =
false
);
24
void
setDebug
(
bool
debug
);
25
26
cond::persistency::Session
dbSession
() {
return
session
; }
27
28
protected
:
29
//Returns type object for provided type name
30
edm::eventsetup::TypeTag
findType
(
const
std::string
&
type
);
31
32
// Database connection management
33
cond::persistency::Session
session
;
34
35
private
:
36
bool
debugFlag
=
false
;
37
};
38
39
}
// namespace l1t
40
41
#endif
Session.h
l1t
delete x;
Definition:
CaloConfig.h:22
type
type
Definition:
SiPixelVCal_PayloadInspector.cc:39
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
DataKeyTags.h
l1t::DataManager::connect
void connect(const std::string &connectString, const std::string &authenticationPath, bool isOMDS=false)
Definition:
DataManager.cc:14
l1t::DataManager::debugFlag
bool debugFlag
Definition:
DataManager.h:36
l1t::DataManager::DataManager
DataManager()
Definition:
DataManager.cc:8
l1t::DataManager::findType
edm::eventsetup::TypeTag findType(const std::string &type)
Definition:
DataManager.cc:32
debug
#define debug
Definition:
HDRShower.cc:19
l1t::DataManager
Definition:
DataManager.h:17
l1t::DataManager::dbSession
cond::persistency::Session dbSession()
Definition:
DataManager.h:26
cond::persistency::Session
Definition:
Session.h:63
writeEcalDQMStatus.authenticationPath
authenticationPath
Definition:
writeEcalDQMStatus.py:19
l1t::DataManager::~DataManager
virtual ~DataManager()
Definition:
DataManager.cc:27
edm::eventsetup::heterocontainer::HCTypeTag
Definition:
HCTypeTag.h:38
l1t::DataManager::setDebug
void setDebug(bool debug)
Definition:
DataManager.cc:43
l1t::DataManager::session
cond::persistency::Session session
Definition:
DataManager.h:33
Generated for CMSSW Reference Manual by
1.8.14