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
()
override
;
16
17
// User data methods
18
inline
std::string
getTable
()
override
{
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
private
:
39
void
prepareWrite
() noexcept(
false
) override;
40
41
void
writeDB
(
const
ODTowersToByPassDat
*
item
,
ODTowersToByPassInfo
* iov) noexcept(
false
);
42
43
void
writeArrayDB
(
const
std
::
vector
<
ODTowersToByPassDat
>&
data
,
ODTowersToByPassInfo
* iov) noexcept(
false
);
44
45
void
fetchData
(
std
::
vector
<
ODTowersToByPassDat
>* fillMap,
ODTowersToByPassInfo
* iov) noexcept(
false
);
46
47
// User data
48
int
m_tr
;
49
int
m_fed
;
50
int
m_tt
;
51
int
m_time
;
52
int
m_sta
;
53
int
m_ID
;
54
};
55
56
#endif
EcalCondDBInterface
Definition:
EcalCondDBInterface.h:37
IDataItem.h
funct::false
false
Definition:
Factorize.h:29
ODTowersToByPassDat::setFedId
void setFedId(int dac)
Definition:
ODTowersToByPassDat.h:26
ODTowersToByPassDat::m_tr
int m_tr
Definition:
ODTowersToByPassDat.h:48
ODTowersToByPassDat::prepareWrite
void prepareWrite() noexcept(false) override
Definition:
ODTowersToByPassDat.cc:25
ODTowersToByPassDat::ODTowersToByPassDat
ODTowersToByPassDat()
Definition:
ODTowersToByPassDat.cc:10
ODTowersToByPassDat::writeDB
void writeDB(const ODTowersToByPassDat *item, ODTowersToByPassInfo *iov) noexcept(false)
Definition:
ODTowersToByPassDat.cc:38
ODTowersToByPassDat::getTable
std::string getTable() override
Definition:
ODTowersToByPassDat.h:18
ODTowersToByPassDat::setTrId
void setTrId(int dac)
Definition:
ODTowersToByPassDat.h:23
ODTowersToByPassDat::fetchData
void fetchData(std::vector< ODTowersToByPassDat > *fillMap, ODTowersToByPassInfo *iov) noexcept(false)
Definition:
ODTowersToByPassDat.cc:55
ODTowersToByPassDat::getId
int getId() const
Definition:
ODTowersToByPassDat.h:21
ODTowersToByPassDat::setStatus
void setStatus(int dac)
Definition:
ODTowersToByPassDat.h:35
watchdog.const
const
Definition:
watchdog.py:83
ODTowersToByPassDat::m_tt
int m_tt
Definition:
ODTowersToByPassDat.h:50
ODTowersToByPassInfo.h
ODTowersToByPassDat::getTimeCorr
int getTimeCorr() const
Definition:
ODTowersToByPassDat.h:33
ODTowersToByPassDat::getStatus
int getStatus() const
Definition:
ODTowersToByPassDat.h:36
ODTowersToByPassDat::setId
void setId(int dac)
Definition:
ODTowersToByPassDat.h:20
ODTowersToByPassDat
Definition:
ODTowersToByPassDat.h:11
ODTowersToByPassDat::m_ID
int m_ID
Definition:
ODTowersToByPassDat.h:53
ODTowersToByPassDat::getTTId
int getTTId() const
Definition:
ODTowersToByPassDat.h:30
ODTowersToByPassDat::getTrId
int getTrId() const
Definition:
ODTowersToByPassDat.h:24
ODTowersToByPassDat::m_time
int m_time
Definition:
ODTowersToByPassDat.h:51
ODTowersToByPassDat::writeArrayDB
void writeArrayDB(const std::vector< ODTowersToByPassDat > &data, ODTowersToByPassInfo *iov) noexcept(false)
Definition:
ODTowersToByPassDat.cc:90
ODTowersToByPassDat::~ODTowersToByPassDat
~ODTowersToByPassDat() override
Definition:
ODTowersToByPassDat.cc:23
ODTowersToByPassDat::setTimeCorr
void setTimeCorr(int dac)
Definition:
ODTowersToByPassDat.h:32
ODTowersToByPassDat::setTTId
void setTTId(int dac)
Definition:
ODTowersToByPassDat.h:29
IODConfig
Definition:
IODConfig.h:18
trackerHitRTTI::vector
Definition:
trackerHitRTTI.h:21
B2GTnPMonitor_cfi.item
item
Definition:
B2GTnPMonitor_cfi.py:147
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
EcalLogicID.h
std
Definition:
JetResolutionObject.h:76
ODTowersToByPassDat::m_sta
int m_sta
Definition:
ODTowersToByPassDat.h:52
data
char data[epos_bytes_allocation]
Definition:
EPOS_Wrapper.h:79
ODTowersToByPassDat::m_fed
int m_fed
Definition:
ODTowersToByPassDat.h:49
ODTowersToByPassDat::getFedId
int getFedId() const
Definition:
ODTowersToByPassDat.h:27
ODTowersToByPassInfo
Definition:
ODTowersToByPassInfo.h:9
Generated for CMSSW Reference Manual by
1.8.16