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