Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
OnlineDB
EcalCondDB
interface
FEConfigSpikeInfo.h
Go to the documentation of this file.
1
#ifndef FECONFIGSPIKE_H
2
#define FECONFIGSPIKE_H
3
4
#include <map>
5
#include <string>
6
7
#include "
OnlineDB/EcalCondDB/interface/IODConfig.h
"
8
#include "
OnlineDB/EcalCondDB/interface/Tm.h
"
9
#include "
OnlineDB/EcalCondDB/interface/DateHandler.h
"
10
11
class
FEConfigSpikeInfo
:
public
IODConfig
{
12
public
:
13
friend
class
EcalCondDBInterface
;
14
15
FEConfigSpikeInfo
();
16
~FEConfigSpikeInfo
();
17
18
// Methods for user data
19
inline
std::string
getTable
() {
return
"FE_CONFIG_SPIKE_INFO"
; }
20
21
inline
void
setId
(
int
id
) {
m_ID
= id; }
22
inline
int
getId
()
const
{
return
m_ID
; }
23
// for compatibility
24
void
setID
(
int
id
) {
setId
(
id
);}
25
int
getID
() {
return
getId
() ;}
26
// the tag is already in IODConfig
27
inline
void
setVersion
(
int
id
) {
m_version
= id; }
28
inline
int
getVersion
()
const
{
return
m_version
; }
29
30
31
Tm
getDBTime
()
const
{
return
m_db_time
;}
32
void
setDBTime
(
Tm
x
) {
m_db_time
=
x
; }
33
34
35
// Methods from IUniqueDBObject
36
int
fetchID
()
throw
(std::runtime_error);
37
int
fetchNextId
()
throw
(std::runtime_error);
38
void
setByID
(
int
id
)
throw
(std::runtime_error);
39
void
setParameters
(std::
map
<std::
string
,std::
string
> my_keys_map);
40
41
// operators
42
inline
bool
operator
==(
const
FEConfigSpikeInfo
&
r
)
const
{
return
(
m_ID
== r.m_ID ); }
43
inline
bool
operator!=
(
const
FEConfigSpikeInfo
&
r
)
const
{
return
!(*
this
==
r
); }
44
45
private
:
46
// User data for this IOV
47
48
int
m_ID
;
49
Tm
m_db_time
;
50
int
m_version
;
51
52
void
prepareWrite
()
throw
(std::runtime_error);
53
void
writeDB
()
throw
(std::runtime_error);
54
void
clear
();
55
void
fetchData
(
FEConfigSpikeInfo
*
result
)
throw
(std::runtime_error);
56
void
fetchLastData
(
FEConfigSpikeInfo
*
result
)
throw
(std::runtime_error);
57
58
59
};
60
61
62
#endif
DateHandler.h
FEConfigSpikeInfo::m_version
int m_version
Definition:
FEConfigSpikeInfo.h:50
FEConfigSpikeInfo::setByID
void setByID(int id)
Definition:
FEConfigSpikeInfo.cc:218
EcalCondDBInterface
Definition:
EcalCondDBInterface.h:36
FEConfigSpikeInfo::prepareWrite
void prepareWrite()
Definition:
FEConfigSpikeInfo.cc:59
csvReporter.r
tuple r
Definition:
csvReporter.py:25
FEConfigSpikeInfo::getTable
std::string getTable()
Definition:
FEConfigSpikeInfo.h:19
FEConfigSpikeInfo::getID
int getID()
Definition:
FEConfigSpikeInfo.h:25
FEConfigSpikeInfo::m_ID
int m_ID
Definition:
FEConfigSpikeInfo.h:48
FEConfigSpikeInfo::getId
int getId() const
Definition:
FEConfigSpikeInfo.h:22
FEConfigSpikeInfo::setVersion
void setVersion(int id)
Definition:
FEConfigSpikeInfo.h:27
python.multivaluedict.map
def map
Definition:
multivaluedict.py:125
FEConfigSpikeInfo::setParameters
void setParameters(std::map< std::string, std::string > my_keys_map)
Definition:
FEConfigSpikeInfo.cc:83
FEConfigSpikeInfo::m_db_time
Tm m_db_time
Definition:
FEConfigSpikeInfo.h:49
FEConfigSpikeInfo::fetchLastData
void fetchLastData(FEConfigSpikeInfo *result)
Definition:
FEConfigSpikeInfo.cc:159
IODConfig
Definition:
IODConfig.h:19
query.result
tuple result
Definition:
query.py:137
FEConfigSpikeInfo::getDBTime
Tm getDBTime() const
Definition:
FEConfigSpikeInfo.h:31
FEConfigSpikeInfo::setDBTime
void setDBTime(Tm x)
Definition:
FEConfigSpikeInfo.h:32
Tm.h
FEConfigSpikeInfo::clear
void clear()
Definition:
FEConfigSpikeInfo.cc:26
FEConfigSpikeInfo::fetchData
void fetchData(FEConfigSpikeInfo *result)
Definition:
FEConfigSpikeInfo.cc:125
FEConfigSpikeInfo::setID
void setID(int id)
Definition:
FEConfigSpikeInfo.h:24
cmsCodeRules.cppFunctionSkipper.operator
string operator
Definition:
cppFunctionSkipper.py:10
FEConfigSpikeInfo::operator!=
bool operator!=(const FEConfigSpikeInfo &r) const
Definition:
FEConfigSpikeInfo.h:43
compareJSON.const
string const
Definition:
compareJSON.py:14
FEConfigSpikeInfo::~FEConfigSpikeInfo
~FEConfigSpikeInfo()
Definition:
FEConfigSpikeInfo.cc:31
FEConfigSpikeInfo
Definition:
FEConfigSpikeInfo.h:11
FEConfigSpikeInfo::getVersion
int getVersion() const
Definition:
FEConfigSpikeInfo.h:28
FEConfigSpikeInfo::fetchNextId
int fetchNextId()
Definition:
FEConfigSpikeInfo.cc:37
IODConfig.h
x
Definition:
DDAxes.h:10
FEConfigSpikeInfo::writeDB
void writeDB()
Definition:
FEConfigSpikeInfo.cc:98
FEConfigSpikeInfo::fetchID
int fetchID()
Definition:
FEConfigSpikeInfo.cc:184
Tm
Definition:
Tm.h:14
FEConfigSpikeInfo::FEConfigSpikeInfo
FEConfigSpikeInfo()
Definition:
FEConfigSpikeInfo.cc:13
FEConfigSpikeInfo::setId
void setId(int id)
Definition:
FEConfigSpikeInfo.h:21
CommPDSkim_cfg.throw
tuple throw
Definition:
CommPDSkim_cfg.py:100
Generated for CMSSW Reference Manual by
1.8.5