OnlineDB
EcalCondDB
interface
MonPedestalOffsetsDat.h
Go to the documentation of this file.
1
#ifndef MONPEDESTALOFFSETSDAT_H
2
#define MONPEDESTALOFFSETSDAT_H
3
4
#include <map>
5
#include <stdexcept>
6
7
#include "
OnlineDB/EcalCondDB/interface/IDataItem.h
"
8
#include "
OnlineDB/EcalCondDB/interface/MonRunTag.h
"
9
#include "
OnlineDB/EcalCondDB/interface/MonRunIOV.h
"
10
#include "
OnlineDB/EcalCondDB/interface/EcalLogicID.h
"
11
12
class
MonPedestalOffsetsDat
:
public
IDataItem
{
13
public
:
14
friend
class
EcalCondDBInterface
;
15
MonPedestalOffsetsDat
();
16
~MonPedestalOffsetsDat
()
override
;
17
18
// User data methods
19
inline
std::string
getTable
()
override
{
return
"MON_PEDESTAL_OFFSETS_DAT"
; }
20
21
inline
void
setDACG1
(
int
dac) {
m_dacG1
= dac; }
22
inline
int
getDACG1
()
const
{
return
m_dacG1
; }
23
24
inline
void
setDACG6
(
int
dac) {
m_dacG6
= dac; }
25
inline
int
getDACG6
()
const
{
return
m_dacG6
; }
26
27
inline
void
setDACG12
(
int
dac) {
m_dacG12
= dac; }
28
inline
int
getDACG12
()
const
{
return
m_dacG12
; }
29
30
inline
void
setTaskStatus
(
bool
status
) {
m_taskStatus
=
status
; }
31
inline
bool
getTaskStatus
()
const
{
return
m_taskStatus
; }
32
33
private
:
34
void
prepareWrite
() noexcept(
false
) override;
35
36
void
writeDB
(
const
EcalLogicID
* ecid,
const
MonPedestalOffsetsDat
*
item
,
MonRunIOV
* iov) noexcept(
false
);
37
38
void
writeArrayDB
(
const
std
::
map
<
EcalLogicID
,
MonPedestalOffsetsDat
>*
data
,
MonRunIOV
* iov) noexcept(
false
);
39
40
void
fetchData
(
std
::
map
<
EcalLogicID
,
MonPedestalOffsetsDat
>* fillMap,
41
MonRunIOV
* iov,
42
std
::
string
mappa = "
cv
.maps_to ") noexcept(
false
);
43
44
// User data
45
int
m_dacG1
;
46
int
m_dacG6
;
47
int
m_dacG12
;
48
bool
m_taskStatus
;
49
};
50
51
#endif
MonPedestalOffsetsDat::~MonPedestalOffsetsDat
~MonPedestalOffsetsDat() override
Definition:
MonPedestalOffsetsDat.cc:24
EcalCondDBInterface
Definition:
EcalCondDBInterface.h:37
IDataItem.h
funct::false
false
Definition:
Factorize.h:29
MonPedestalOffsetsDat::setDACG1
void setDACG1(int dac)
Definition:
MonPedestalOffsetsDat.h:21
cuy.cv
cv
Definition:
cuy.py:364
mps_update.status
status
Definition:
mps_update.py:69
MonPedestalOffsetsDat::getDACG12
int getDACG12() const
Definition:
MonPedestalOffsetsDat.h:28
MonPedestalOffsetsDat::getTable
std::string getTable() override
Definition:
MonPedestalOffsetsDat.h:19
MonPedestalOffsetsDat::m_dacG12
int m_dacG12
Definition:
MonPedestalOffsetsDat.h:47
watchdog.const
const
Definition:
watchdog.py:83
MonPedestalOffsetsDat::prepareWrite
void prepareWrite() noexcept(false) override
Definition:
MonPedestalOffsetsDat.cc:26
IDataItem
Definition:
IDataItem.h:16
MonPedestalOffsetsDat::setDACG6
void setDACG6(int dac)
Definition:
MonPedestalOffsetsDat.h:24
EcalLogicID
Definition:
EcalLogicID.h:7
MonPedestalOffsetsDat::getDACG6
int getDACG6() const
Definition:
MonPedestalOffsetsDat.h:25
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
MonRunIOV.h
MonPedestalOffsetsDat::writeArrayDB
void writeArrayDB(const std::map< EcalLogicID, MonPedestalOffsetsDat > *data, MonRunIOV *iov) noexcept(false)
Definition:
MonPedestalOffsetsDat.cc:117
MonPedestalOffsetsDat::fetchData
void fetchData(std::map< EcalLogicID, MonPedestalOffsetsDat > *fillMap, MonRunIOV *iov, std::string mappa=" cv.maps_to ") noexcept(false)
Definition:
MonPedestalOffsetsDat.cc:71
MonPedestalOffsetsDat::getDACG1
int getDACG1() const
Definition:
MonPedestalOffsetsDat.h:22
MonPedestalOffsetsDat::m_dacG1
int m_dacG1
Definition:
MonPedestalOffsetsDat.h:45
MonPedestalOffsetsDat::m_dacG6
int m_dacG6
Definition:
MonPedestalOffsetsDat.h:46
MonPedestalOffsetsDat::setDACG12
void setDACG12(int dac)
Definition:
MonPedestalOffsetsDat.h:27
MonRunIOV
Definition:
MonRunIOV.h:14
B2GTnPMonitor_cfi.item
item
Definition:
B2GTnPMonitor_cfi.py:147
MonPedestalOffsetsDat::m_taskStatus
bool m_taskStatus
Definition:
MonPedestalOffsetsDat.h:48
MonRunTag.h
MonPedestalOffsetsDat::writeDB
void writeDB(const EcalLogicID *ecid, const MonPedestalOffsetsDat *item, MonRunIOV *iov) noexcept(false)
Definition:
MonPedestalOffsetsDat.cc:41
MonPedestalOffsetsDat::setTaskStatus
void setTaskStatus(bool status)
Definition:
MonPedestalOffsetsDat.h:30
EcalLogicID.h
std
Definition:
JetResolutionObject.h:76
MonPedestalOffsetsDat
Definition:
MonPedestalOffsetsDat.h:12
data
char data[epos_bytes_allocation]
Definition:
EPOS_Wrapper.h:79
genParticles_cff.map
map
Definition:
genParticles_cff.py:11
MonPedestalOffsetsDat::MonPedestalOffsetsDat
MonPedestalOffsetsDat()
Definition:
MonPedestalOffsetsDat.cc:12
MonPedestalOffsetsDat::getTaskStatus
bool getTaskStatus() const
Definition:
MonPedestalOffsetsDat.h:31
Generated for CMSSW Reference Manual by
1.8.16