Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
OnlineDB
EcalCondDB
interface
ODTowersToByPassDat.h
Go to the documentation of this file.
1
#ifndef ODTOWERSTOBYPASSDAT_H
2
#define ODTOWERSTOBYPASSDAT_H
3
4
#include <vector>
5
#include <stdexcept>
6
7
#include "
OnlineDB/EcalCondDB/interface/IDataItem.h
"
8
#include "
OnlineDB/EcalCondDB/interface/EcalLogicID.h
"
9
#include "
OnlineDB/EcalCondDB/interface/ODTowersToByPassInfo.h
"
10
11
class
ODTowersToByPassDat
:
public
IODConfig
{
12
public
:
13
friend
class
EcalCondDBInterface
;
14
ODTowersToByPassDat
();
15
~ODTowersToByPassDat
();
16
17
// User data methods
18
inline
std::string
getTable
() {
return
"TOWERS_TO_BYPASS_DAT"
; }
19
20
inline
void
setId
(
int
dac) {
m_ID
= dac; }
21
inline
int
getId
()
const
{
return
m_ID
; }
22
23
inline
void
setTrId
(
int
dac) {
m_tr
= dac; }
24
inline
int
getTrId
()
const
{
return
m_tr
; }
25
26
inline
void
setFedId
(
int
dac) {
m_fed
= dac; }
27
inline
int
getFedId
()
const
{
return
m_fed
; }
28
29
inline
void
setTTId
(
int
dac) {
m_tt
= dac; }
30
inline
int
getTTId
()
const
{
return
m_tt
; }
31
32
inline
void
setTimeCorr
(
int
dac) {
m_time
= dac; }
33
inline
int
getTimeCorr
()
const
{
return
m_time
; }
34
35
inline
void
setStatus
(
int
dac) {
m_sta
= dac; }
36
inline
int
getStatus
()
const
{
return
m_sta
; }
37
38
39
private
:
40
void
prepareWrite
()
41
throw
(std::runtime_error);
42
43
void
writeDB
(
const
ODTowersToByPassDat
* item,
ODTowersToByPassInfo
*
iov
)
44
throw
(std::runtime_error);
45
46
void
writeArrayDB
(
const
std::vector<
ODTowersToByPassDat
>&
data
,
ODTowersToByPassInfo
*
iov
)
47
throw
(std::runtime_error);
48
49
50
void
fetchData
(std::vector<
ODTowersToByPassDat
>* fillMap,
ODTowersToByPassInfo
*
iov
)
51
throw
(std::runtime_error);
52
53
// User data
54
int
m_tr
;
55
int
m_fed
;
56
int
m_tt
;
57
int
m_time
;
58
int
m_sta
;
59
int
m_ID
;
60
61
};
62
63
#endif
ODTowersToByPassDat::setFedId
void setFedId(int dac)
Definition:
ODTowersToByPassDat.h:26
ODTowersToByPassDat::fetchData
void fetchData(std::vector< ODTowersToByPassDat > *fillMap, ODTowersToByPassInfo *iov)
Definition:
ODTowersToByPassDat.cc:71
EcalCondDBInterface
Definition:
EcalCondDBInterface.h:38
ODTowersToByPassDat::setId
void setId(int dac)
Definition:
ODTowersToByPassDat.h:20
ODTowersToByPassDat::getTTId
int getTTId() const
Definition:
ODTowersToByPassDat.h:30
ODTowersToByPassDat::m_tr
int m_tr
Definition:
ODTowersToByPassDat.h:54
ODTowersToByPassDat::m_ID
int m_ID
Definition:
ODTowersToByPassDat.h:59
ODTowersToByPassDat::getTimeCorr
int getTimeCorr() const
Definition:
ODTowersToByPassDat.h:33
ODTowersToByPassDat::m_time
int m_time
Definition:
ODTowersToByPassDat.h:57
ODTowersToByPassInfo.h
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
ODTowersToByPassDat::getStatus
int getStatus() const
Definition:
ODTowersToByPassDat.h:36
ODTowersToByPassDat::writeArrayDB
void writeArrayDB(const std::vector< ODTowersToByPassDat > &data, ODTowersToByPassInfo *iov)
Definition:
ODTowersToByPassDat.cc:110
o2o.iov
tuple iov
Definition:
o2o.py:307
ODTowersToByPassDat::~ODTowersToByPassDat
~ODTowersToByPassDat()
Definition:
ODTowersToByPassDat.cc:28
ODTowersToByPassInfo
Definition:
ODTowersToByPassInfo.h:9
IODConfig
Definition:
IODConfig.h:19
EcalLogicID.h
ODTowersToByPassDat::ODTowersToByPassDat
ODTowersToByPassDat()
Definition:
ODTowersToByPassDat.cc:10
ODTowersToByPassDat::m_tt
int m_tt
Definition:
ODTowersToByPassDat.h:56
ODTowersToByPassDat::writeDB
void writeDB(const ODTowersToByPassDat *item, ODTowersToByPassInfo *iov)
Definition:
ODTowersToByPassDat.cc:50
ODTowersToByPassDat::setTimeCorr
void setTimeCorr(int dac)
Definition:
ODTowersToByPassDat.h:32
ODTowersToByPassDat::getFedId
int getFedId() const
Definition:
ODTowersToByPassDat.h:27
IDataItem.h
ODTowersToByPassDat::setTrId
void setTrId(int dac)
Definition:
ODTowersToByPassDat.h:23
ODTowersToByPassDat::setStatus
void setStatus(int dac)
Definition:
ODTowersToByPassDat.h:35
compareJSON.const
string const
Definition:
compareJSON.py:14
ODTowersToByPassDat::prepareWrite
void prepareWrite()
Definition:
ODTowersToByPassDat.cc:34
ODTowersToByPassDat::getId
int getId() const
Definition:
ODTowersToByPassDat.h:21
ODTowersToByPassDat::m_sta
int m_sta
Definition:
ODTowersToByPassDat.h:58
ODTowersToByPassDat::setTTId
void setTTId(int dac)
Definition:
ODTowersToByPassDat.h:29
ODTowersToByPassDat::getTrId
int getTrId() const
Definition:
ODTowersToByPassDat.h:24
ODTowersToByPassDat::getTable
std::string getTable()
Definition:
ODTowersToByPassDat.h:18
AlCaHLTBitMon_QueryRunRegistry.data
tuple data
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:288
ODTowersToByPassDat
Definition:
ODTowersToByPassDat.h:11
ODTowersToByPassDat::m_fed
int m_fed
Definition:
ODTowersToByPassDat.h:55
CommPDSkim_cfg.throw
tuple throw
Definition:
CommPDSkim_cfg.py:101
Generated for CMSSW Reference Manual by
1.8.5