Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
OnlineDB
EcalCondDB
interface
FEConfigMainInfo.h
Go to the documentation of this file.
1
#ifndef FECONFIGMAININFO_H
2
#define FECONFIGMAININFO_H
3
4
#include <stdexcept>
5
#include <iostream>
6
7
8
#include <map>
9
#include <string>
10
11
12
#include "
OnlineDB/EcalCondDB/interface/IODConfig.h
"
13
#include "
OnlineDB/EcalCondDB/interface/Tm.h
"
14
#include "
OnlineDB/EcalCondDB/interface/DateHandler.h
"
15
16
17
18
19
class
FEConfigMainInfo
:
public
IODConfig
{
20
public
:
21
friend
class
EcalCondDBInterface
;
22
23
FEConfigMainInfo
();
24
~FEConfigMainInfo
();
25
26
inline
std::string
getTable
() {
return
"FE_CONFIG_MAIN"
; }
27
28
// Methods for user data
29
inline
void
setId
(
int
id
) {
m_ID
=
id
; }
30
inline
int
getId
()
const
{
return
m_ID
; }
31
32
Tm
getDBTime
()
const
{
return
m_db_time
;}
33
void
setDBTime
(
Tm
x
) {
m_db_time
=
x
; }
34
35
36
void
setDescription
(std::string
x
) {
m_description
=
x
;}
37
std::string
getDescription
()
const
{
return
m_description
;}
38
//
39
void
setPedId
(
int
x
) {
m_ped_id
=
x
;}
40
int
getPedId
()
const
{
return
m_ped_id
;}
41
//
42
void
setLinId
(
int
x
){
m_lin_id
=
x
; }
43
int
getLinId
()
const
{
return
m_lin_id
; }
44
//
45
void
setLUTId
(
int
x
){
m_lut_id
=
x
; }
46
int
getLUTId
()
const
{
return
m_lut_id
; }
47
//
48
void
setFgrId
(
int
x
) {
m_fgr_id
=
x
;}
49
int
getFgrId
()
const
{
return
m_fgr_id
;}
50
//
51
void
setSliId
(
int
x
){
m_sli_id
=
x
; }
52
int
getSliId
()
const
{
return
m_sli_id
; }
53
//
54
void
setWeiId
(
int
x
) {
m_wei_id
=
x
;}
55
int
getWeiId
()
const
{
return
m_wei_id
;}
56
//
57
void
setSpiId
(
int
x
) {
m_spi_id
=
x
;}
58
int
getSpiId
()
const
{
return
m_spi_id
;}
59
//
60
void
setTimId
(
int
x
) {
m_tim_id
=
x
;}
61
int
getTimId
()
const
{
return
m_tim_id
;}
62
//
63
void
setBxtId
(
int
x
){
m_bxt_id
=
x
; }
64
int
getBxtId
()
const
{
return
m_bxt_id
; }
65
//
66
void
setBttId
(
int
x
){
m_btt_id
=
x
; }
67
int
getBttId
()
const
{
return
m_btt_id
; }
68
//
69
void
setBstId
(
int
x
){
m_bst_id
=
x
; }
70
int
getBstId
()
const
{
return
m_bst_id
; }
71
//
72
inline
void
setVersion
(
int
id
) {
m_version
=
id
; }
73
inline
int
getVersion
()
const
{
return
m_version
; }
74
75
76
77
// operators
78
inline
bool
operator==
(
const
FEConfigMainInfo
&
r
)
const
{
return
(
m_ID
== r.
m_ID
); }
79
inline
bool
operator!=
(
const
FEConfigMainInfo
&
r
)
const
{
return
!(*
this
==
r
); }
80
81
private
:
82
// User data for this IOV
83
int
m_ID
;
84
int
m_ped_id
;
85
int
m_lin_id
;
86
int
m_lut_id
;
87
int
m_sli_id
;
88
int
m_fgr_id
;
89
int
m_wei_id
;
90
int
m_bxt_id
;
91
int
m_btt_id
;
92
int
m_bst_id
;
93
int
m_tim_id
;
94
int
m_spi_id
;
95
int
m_version
;
96
Tm
m_db_time
;
97
std::string
m_description
;
98
99
void
prepareWrite
()
throw
(std::runtime_error);
100
void
writeDB
()
throw
(std::runtime_error);
101
void
clear
();
102
void
fetchData
(
FEConfigMainInfo
*
result
)
throw
(std::runtime_error);
103
void
insertConfig
()
throw
(std::runtime_error);
104
105
106
// Methods from IUniqueDBObject
107
int
fetchID
()
throw
(std::runtime_error);
// fetches
108
int
fetchNextId
()
throw
(std::runtime_error);
// fetches
109
int
fetchIDLast
()
throw
(std::runtime_error);
// fetches the last one
110
void
setByID
(
int
id
)
throw
(std::runtime_error);
111
112
};
113
114
115
116
#endif
FEConfigMainInfo::setSpiId
void setSpiId(int x)
Definition:
FEConfigMainInfo.h:57
DateHandler.h
FEConfigMainInfo::m_lin_id
int m_lin_id
Definition:
FEConfigMainInfo.h:85
FEConfigMainInfo::setDBTime
void setDBTime(Tm x)
Definition:
FEConfigMainInfo.h:33
FEConfigMainInfo::writeDB
void writeDB()
Definition:
FEConfigMainInfo.cc:145
FEConfigMainInfo::setDescription
void setDescription(std::string x)
Definition:
FEConfigMainInfo.h:36
FEConfigMainInfo::getDescription
std::string getDescription() const
Definition:
FEConfigMainInfo.h:37
FEConfigMainInfo::m_btt_id
int m_btt_id
Definition:
FEConfigMainInfo.h:91
FEConfigMainInfo::m_version
int m_version
Definition:
FEConfigMainInfo.h:95
EcalCondDBInterface
Definition:
EcalCondDBInterface.h:39
FEConfigMainInfo::setLinId
void setLinId(int x)
Definition:
FEConfigMainInfo.h:42
FEConfigMainInfo::setTimId
void setTimId(int x)
Definition:
FEConfigMainInfo.h:60
FEConfigMainInfo::m_bst_id
int m_bst_id
Definition:
FEConfigMainInfo.h:92
FEConfigMainInfo::getTable
std::string getTable()
Definition:
FEConfigMainInfo.h:26
FEConfigMainInfo::~FEConfigMainInfo
~FEConfigMainInfo()
Definition:
FEConfigMainInfo.cc:27
FEConfigMainInfo::setBxtId
void setBxtId(int x)
Definition:
FEConfigMainInfo.h:63
FEConfigMainInfo::FEConfigMainInfo
FEConfigMainInfo()
Definition:
FEConfigMainInfo.cc:12
FEConfigMainInfo::setId
void setId(int id)
Definition:
FEConfigMainInfo.h:29
FEConfigMainInfo::m_ID
int m_ID
Definition:
FEConfigMainInfo.h:83
FEConfigMainInfo::m_ped_id
int m_ped_id
Definition:
FEConfigMainInfo.h:84
FEConfigMainInfo::setVersion
void setVersion(int id)
Definition:
FEConfigMainInfo.h:72
FEConfigMainInfo::m_tim_id
int m_tim_id
Definition:
FEConfigMainInfo.h:93
FEConfigMainInfo::prepareWrite
void prepareWrite()
Definition:
FEConfigMainInfo.cc:122
FEConfigMainInfo::m_description
std::string m_description
Definition:
FEConfigMainInfo.h:97
FEConfigMainInfo::m_fgr_id
int m_fgr_id
Definition:
FEConfigMainInfo.h:88
FEConfigMainInfo::fetchID
int fetchID()
Definition:
FEConfigMainInfo.cc:70
errorMatrix2Lands_multiChannel.id
tuple id
Definition:
errorMatrix2Lands_multiChannel.py:151
FEConfigMainInfo::fetchIDLast
int fetchIDLast()
Definition:
FEConfigMainInfo.cc:190
FEConfigMainInfo::m_sli_id
int m_sli_id
Definition:
FEConfigMainInfo.h:87
FEConfigMainInfo::setLUTId
void setLUTId(int x)
Definition:
FEConfigMainInfo.h:45
FEConfigMainInfo::setFgrId
void setFgrId(int x)
Definition:
FEConfigMainInfo.h:48
FEConfigMainInfo::getTimId
int getTimId() const
Definition:
FEConfigMainInfo.h:61
IODConfig
Definition:
IODConfig.h:19
query.result
tuple result
Definition:
query.py:137
FEConfigMainInfo::getLinId
int getLinId() const
Definition:
FEConfigMainInfo.h:43
FEConfigMainInfo::m_bxt_id
int m_bxt_id
Definition:
FEConfigMainInfo.h:90
FEConfigMainInfo::getSpiId
int getSpiId() const
Definition:
FEConfigMainInfo.h:58
FEConfigMainInfo::m_lut_id
int m_lut_id
Definition:
FEConfigMainInfo.h:86
FEConfigMainInfo::getWeiId
int getWeiId() const
Definition:
FEConfigMainInfo.h:55
FEConfigMainInfo::operator!=
bool operator!=(const FEConfigMainInfo &r) const
Definition:
FEConfigMainInfo.h:79
Tm.h
FEConfigMainInfo::setPedId
void setPedId(int x)
Definition:
FEConfigMainInfo.h:39
FEConfigMainInfo::getId
int getId() const
Definition:
FEConfigMainInfo.h:30
FEConfigMainInfo::setWeiId
void setWeiId(int x)
Definition:
FEConfigMainInfo.h:54
FEConfigMainInfo::fetchNextId
int fetchNextId()
Definition:
FEConfigMainInfo.cc:49
FEConfigMainInfo::getFgrId
int getFgrId() const
Definition:
FEConfigMainInfo.h:49
FEConfigMainInfo::getBttId
int getBttId() const
Definition:
FEConfigMainInfo.h:67
FEConfigMainInfo::fetchData
void fetchData(FEConfigMainInfo *result)
Definition:
FEConfigMainInfo.cc:263
FEConfigMainInfo::m_wei_id
int m_wei_id
Definition:
FEConfigMainInfo.h:89
FEConfigMainInfo
Definition:
FEConfigMainInfo.h:19
FEConfigMainInfo::insertConfig
void insertConfig()
Definition:
FEConfigMainInfo.cc:316
FEConfigMainInfo::getVersion
int getVersion() const
Definition:
FEConfigMainInfo.h:73
FEConfigMainInfo::clear
void clear()
Definition:
FEConfigMainInfo.cc:30
FEConfigMainInfo::m_db_time
Tm m_db_time
Definition:
FEConfigMainInfo.h:96
FEConfigMainInfo::getPedId
int getPedId() const
Definition:
FEConfigMainInfo.h:40
FEConfigMainInfo::getBxtId
int getBxtId() const
Definition:
FEConfigMainInfo.h:64
FEConfigMainInfo::getBstId
int getBstId() const
Definition:
FEConfigMainInfo.h:70
FEConfigMainInfo::operator==
bool operator==(const FEConfigMainInfo &r) const
Definition:
FEConfigMainInfo.h:78
alignCSCRings.r
list r
Definition:
alignCSCRings.py:92
FEConfigMainInfo::getLUTId
int getLUTId() const
Definition:
FEConfigMainInfo.h:46
IODConfig.h
x
Definition:
DDAxes.h:10
FEConfigMainInfo::setSliId
void setSliId(int x)
Definition:
FEConfigMainInfo.h:51
FEConfigMainInfo::m_spi_id
int m_spi_id
Definition:
FEConfigMainInfo.h:94
Tm
Definition:
Tm.h:14
FEConfigMainInfo::setBstId
void setBstId(int x)
Definition:
FEConfigMainInfo.h:69
FEConfigMainInfo::getSliId
int getSliId() const
Definition:
FEConfigMainInfo.h:52
FEConfigMainInfo::setBttId
void setBttId(int x)
Definition:
FEConfigMainInfo.h:66
FEConfigMainInfo::setByID
void setByID(int id)
Definition:
FEConfigMainInfo.cc:218
FEConfigMainInfo::getDBTime
Tm getDBTime() const
Definition:
FEConfigMainInfo.h:32
CommPDSkim_cfg.throw
tuple throw
Definition:
CommPDSkim_cfg.py:101
Generated for CMSSW Reference Manual by
1.8.5