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