Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
OnlineDB
EcalCondDB
interface
ODDCUConfig.h
Go to the documentation of this file.
1
#ifndef ODDCUCONFIG_H
2
#define ODDCUCONFIG_H
3
4
#include <map>
5
#include <stdexcept>
6
#include "
OnlineDB/Oracle/interface/Oracle.h
"
7
#include "
OnlineDB/EcalCondDB/interface/IODConfig.h
"
8
#define USE_NORM 1
9
#define USE_CHUN 2
10
#define USE_BUFF 3
11
12
/* Buffer Size */
13
#define BUFSIZE 200;
14
15
class
ODDCUConfig
:
public
IODConfig
{
16
public
:
17
friend
class
EcalCondDBInterface
;
18
ODDCUConfig
();
19
~ODDCUConfig
();
20
21
// User data methods
22
inline
std::string
getTable
() {
return
"ECAL_DCU_CONFIGURATION"
; }
23
24
inline
void
setId
(
int
id
) {
m_ID
=
id
; }
25
inline
int
getId
()
const
{
return
m_ID
; }
26
27
void
setParameters
(std::map<std::string,std::string> my_keys_map);
28
29
private
:
30
void
prepareWrite
()
throw
(std::runtime_error);
31
void
writeDB
()
throw
(std::runtime_error);
32
void
clear
();
33
void
fetchData
(
ODDCUConfig
*
result
)
throw
(std::runtime_error);
34
int
fetchID
()
throw
(std::runtime_error);
35
36
37
int
fetchNextId
()
throw
(std::runtime_error);
38
39
// User data
40
int
m_ID
;
41
42
};
43
44
#endif
EcalCondDBInterface
Definition:
EcalCondDBInterface.h:39
ODDCUConfig::writeDB
void writeDB()
Definition:
ODDCUConfig.cc:87
ODDCUConfig::prepareWrite
void prepareWrite()
Definition:
ODDCUConfig.cc:66
ODDCUConfig::setParameters
void setParameters(std::map< std::string, std::string > my_keys_map)
Definition:
ODDCUConfig.cc:31
ODDCUConfig::setId
void setId(int id)
Definition:
ODDCUConfig.h:24
ODDCUConfig::fetchNextId
int fetchNextId()
Definition:
ODDCUConfig.cc:44
ODDCUConfig::ODDCUConfig
ODDCUConfig()
Definition:
ODDCUConfig.cc:10
ODDCUConfig::getTable
std::string getTable()
Definition:
ODDCUConfig.h:22
ODDCUConfig::~ODDCUConfig
~ODDCUConfig()
Definition:
ODDCUConfig.cc:27
Oracle.h
ODDCUConfig::getId
int getId() const
Definition:
ODDCUConfig.h:25
errorMatrix2Lands_multiChannel.id
tuple id
Definition:
errorMatrix2Lands_multiChannel.py:151
IODConfig
Definition:
IODConfig.h:19
query.result
tuple result
Definition:
query.py:137
ODDCUConfig::fetchID
int fetchID()
Definition:
ODDCUConfig.cc:142
ODDCUConfig::fetchData
void fetchData(ODDCUConfig *result)
Definition:
ODDCUConfig.cc:113
ODDCUConfig::m_ID
int m_ID
Definition:
ODDCUConfig.h:40
IODConfig.h
ODDCUConfig::clear
void clear()
Definition:
ODDCUConfig.cc:22
ODDCUConfig
Definition:
ODDCUConfig.h:15
CommPDSkim_cfg.throw
tuple throw
Definition:
CommPDSkim_cfg.py:101
Generated for CMSSW Reference Manual by
1.8.5