OnlineDB
EcalCondDB
interface
ODPedestalOffsetsDat.h
Go to the documentation of this file.
1
#ifndef ODPEDESTALOFFSETSDAT_H
2
#define ODPEDESTALOFFSETSDAT_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/ODFEPedestalOffsetInfo.h
"
10
11
class
ODPedestalOffsetsDat
:
public
IODConfig
{
12
public
:
13
friend
class
EcalCondDBInterface
;
14
ODPedestalOffsetsDat
();
15
~ODPedestalOffsetsDat
()
override
;
16
17
// User data methods
18
inline
std::string
getTable
()
override
{
return
"PEDESTAL_OFFSETS_DAT"
; }
19
20
inline
void
setId
(
int
dac) {
m_ID
= dac; }
21
inline
int
getId
()
const
{
return
m_ID
; }
22
23
inline
void
setSMId
(
int
dac) {
m_sm
= dac; }
24
inline
int
getSMId
()
const
{
return
m_sm
; }
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
setCrystalId
(
int
dac) {
m_xt
= dac; }
33
inline
int
getCrystalId
()
const
{
return
m_xt
; }
34
35
inline
void
setLow
(
int
dac) {
m_low
= dac; }
36
inline
int
getLow
()
const
{
return
m_low
; }
37
38
inline
void
setMid
(
int
dac) {
m_mid
= dac; }
39
inline
int
getMid
()
const
{
return
m_mid
; }
40
41
inline
void
setHigh
(
int
dac) {
m_high
= dac; }
42
inline
int
getHigh
()
const
{
return
m_high
; }
43
44
private
:
45
void
prepareWrite
() noexcept(
false
) override;
46
47
void
writeDB
(
const
ODPedestalOffsetsDat
*
item
,
ODFEPedestalOffsetInfo
* iov) noexcept(
false
);
48
49
void
writeArrayDB
(
const
std
::
vector
<
ODPedestalOffsetsDat
>&
data
,
ODFEPedestalOffsetInfo
* iov) noexcept(
false
);
50
51
void
fetchData
(
std
::
vector
<
ODPedestalOffsetsDat
>* fillMap,
ODFEPedestalOffsetInfo
* iov) noexcept(
false
);
52
53
// User data
54
int
m_sm
;
55
int
m_fed
;
56
int
m_tt
;
57
int
m_xt
;
58
int
m_low
;
59
int
m_mid
;
60
int
m_high
;
61
int
m_ID
;
62
};
63
64
#endif
EcalCondDBInterface
Definition:
EcalCondDBInterface.h:37
IDataItem.h
ODPedestalOffsetsDat::getLow
int getLow() const
Definition:
ODPedestalOffsetsDat.h:36
funct::false
false
Definition:
Factorize.h:29
ODPedestalOffsetsDat::setTTId
void setTTId(int dac)
Definition:
ODPedestalOffsetsDat.h:29
ODPedestalOffsetsDat::m_mid
int m_mid
Definition:
ODPedestalOffsetsDat.h:59
ODPedestalOffsetsDat::m_fed
int m_fed
Definition:
ODPedestalOffsetsDat.h:55
ODPedestalOffsetsDat::getMid
int getMid() const
Definition:
ODPedestalOffsetsDat.h:39
ODPedestalOffsetsDat::prepareWrite
void prepareWrite() noexcept(false) override
Definition:
ODPedestalOffsetsDat.cc:27
ODPedestalOffsetsDat
Definition:
ODPedestalOffsetsDat.h:11
watchdog.const
const
Definition:
watchdog.py:83
ODPedestalOffsetsDat::~ODPedestalOffsetsDat
~ODPedestalOffsetsDat() override
Definition:
ODPedestalOffsetsDat.cc:25
ODPedestalOffsetsDat::setCrystalId
void setCrystalId(int dac)
Definition:
ODPedestalOffsetsDat.h:32
ODPedestalOffsetsDat::getTTId
int getTTId() const
Definition:
ODPedestalOffsetsDat.h:30
ODFEPedestalOffsetInfo
Definition:
ODFEPedestalOffsetInfo.h:9
ODPedestalOffsetsDat::m_low
int m_low
Definition:
ODPedestalOffsetsDat.h:58
ODPedestalOffsetsDat::m_high
int m_high
Definition:
ODPedestalOffsetsDat.h:60
ODPedestalOffsetsDat::setLow
void setLow(int dac)
Definition:
ODPedestalOffsetsDat.h:35
ODPedestalOffsetsDat::setFedId
void setFedId(int dac)
Definition:
ODPedestalOffsetsDat.h:26
ODPedestalOffsetsDat::getSMId
int getSMId() const
Definition:
ODPedestalOffsetsDat.h:24
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
ODPedestalOffsetsDat::setSMId
void setSMId(int dac)
Definition:
ODPedestalOffsetsDat.h:23
ODFEPedestalOffsetInfo.h
IODConfig
Definition:
IODConfig.h:18
trackerHitRTTI::vector
Definition:
trackerHitRTTI.h:21
B2GTnPMonitor_cfi.item
item
Definition:
B2GTnPMonitor_cfi.py:147
ODPedestalOffsetsDat::fetchData
void fetchData(std::vector< ODPedestalOffsetsDat > *fillMap, ODFEPedestalOffsetInfo *iov) noexcept(false)
Definition:
ODPedestalOffsetsDat.cc:59
ODPedestalOffsetsDat::getFedId
int getFedId() const
Definition:
ODPedestalOffsetsDat.h:27
ODPedestalOffsetsDat::m_sm
int m_sm
Definition:
ODPedestalOffsetsDat.h:54
EcalLogicID.h
std
Definition:
JetResolutionObject.h:76
ODPedestalOffsetsDat::getHigh
int getHigh() const
Definition:
ODPedestalOffsetsDat.h:42
ODPedestalOffsetsDat::getId
int getId() const
Definition:
ODPedestalOffsetsDat.h:21
ODPedestalOffsetsDat::m_ID
int m_ID
Definition:
ODPedestalOffsetsDat.h:61
ODPedestalOffsetsDat::m_tt
int m_tt
Definition:
ODPedestalOffsetsDat.h:56
ODPedestalOffsetsDat::writeArrayDB
void writeArrayDB(const std::vector< ODPedestalOffsetsDat > &data, ODFEPedestalOffsetInfo *iov) noexcept(false)
Definition:
ODPedestalOffsetsDat.cc:97
data
char data[epos_bytes_allocation]
Definition:
EPOS_Wrapper.h:79
ODPedestalOffsetsDat::ODPedestalOffsetsDat
ODPedestalOffsetsDat()
Definition:
ODPedestalOffsetsDat.cc:10
ODPedestalOffsetsDat::m_xt
int m_xt
Definition:
ODPedestalOffsetsDat.h:57
ODPedestalOffsetsDat::writeDB
void writeDB(const ODPedestalOffsetsDat *item, ODFEPedestalOffsetInfo *iov) noexcept(false)
Definition:
ODPedestalOffsetsDat.cc:40
ODPedestalOffsetsDat::getTable
std::string getTable() override
Definition:
ODPedestalOffsetsDat.h:18
ODPedestalOffsetsDat::getCrystalId
int getCrystalId() const
Definition:
ODPedestalOffsetsDat.h:33
ODPedestalOffsetsDat::setHigh
void setHigh(int dac)
Definition:
ODPedestalOffsetsDat.h:41
ODPedestalOffsetsDat::setMid
void setMid(int dac)
Definition:
ODPedestalOffsetsDat.h:38
ODPedestalOffsetsDat::setId
void setId(int dac)
Definition:
ODPedestalOffsetsDat.h:20
Generated for CMSSW Reference Manual by
1.8.16