Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
();
17
18
// User data methods
19
inline
std::string
getTable
() {
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
()
35
throw
(std::runtime_error);
36
37
void
writeDB
(
const
EcalLogicID
* ecid,
const
MonPedestalOffsetsDat
* item,
MonRunIOV
*
iov
)
38
throw
(std::runtime_error);
39
40
void
writeArrayDB
(
const
std::map<
EcalLogicID
,
MonPedestalOffsetsDat
>*
data
,
MonRunIOV
*
iov
)
41
throw
(std::runtime_error);
42
43
44
void
fetchData
(std::map< EcalLogicID,
MonPedestalOffsetsDat
>* fillMap,
MonRunIOV
*
iov
, std::
string
mappa="
cv
.maps_to " )
45
throw
(std::runtime_error);
46
47
// User data
48
int
m_dacG1
;
49
int
m_dacG6
;
50
int
m_dacG12
;
51
bool
m_taskStatus
;
52
};
53
54
#endif
MonPedestalOffsetsDat::setTaskStatus
void setTaskStatus(bool status)
Definition:
MonPedestalOffsetsDat.h:30
MonPedestalOffsetsDat
Definition:
MonPedestalOffsetsDat.h:12
MonPedestalOffsetsDat::~MonPedestalOffsetsDat
~MonPedestalOffsetsDat()
Definition:
MonPedestalOffsetsDat.cc:27
EcalCondDBInterface
Definition:
EcalCondDBInterface.h:38
MonPedestalOffsetsDat::getDACG12
int getDACG12() const
Definition:
MonPedestalOffsetsDat.h:28
MonPedestalOffsetsDat::m_dacG1
int m_dacG1
Definition:
MonPedestalOffsetsDat.h:48
MonPedestalOffsetsDat::MonPedestalOffsetsDat
MonPedestalOffsetsDat()
Definition:
MonPedestalOffsetsDat.cc:12
MonPedestalOffsetsDat::m_taskStatus
bool m_taskStatus
Definition:
MonPedestalOffsetsDat.h:51
EcalLogicID
Definition:
EcalLogicID.h:7
MonPedestalOffsetsDat::getDACG6
int getDACG6() const
Definition:
MonPedestalOffsetsDat.h:25
MonRunTag.h
MonPedestalOffsetsDat::m_dacG12
int m_dacG12
Definition:
MonPedestalOffsetsDat.h:50
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
MonPedestalOffsetsDat::writeDB
void writeDB(const EcalLogicID *ecid, const MonPedestalOffsetsDat *item, MonRunIOV *iov)
Definition:
MonPedestalOffsetsDat.cc:51
MonRunIOV
Definition:
MonRunIOV.h:14
MonRunIOV.h
IDataItem
Definition:
IDataItem.h:16
o2o.iov
tuple iov
Definition:
o2o.py:307
MonPedestalOffsetsDat::getTaskStatus
bool getTaskStatus() const
Definition:
MonPedestalOffsetsDat.h:31
EcalLogicID.h
cuy.cv
dictionary cv
Definition:
cuy.py:362
MonPedestalOffsetsDat::m_dacG6
int m_dacG6
Definition:
MonPedestalOffsetsDat.h:49
MonPedestalOffsetsDat::setDACG1
void setDACG1(int dac)
Definition:
MonPedestalOffsetsDat.h:21
MonPedestalOffsetsDat::fetchData
void fetchData(std::map< EcalLogicID, MonPedestalOffsetsDat > *fillMap, MonRunIOV *iov, std::string mappa=" cv.maps_to ")
Definition:
MonPedestalOffsetsDat.cc:78
MonPedestalOffsetsDat::getTable
std::string getTable()
Definition:
MonPedestalOffsetsDat.h:19
MonPedestalOffsetsDat::setDACG12
void setDACG12(int dac)
Definition:
MonPedestalOffsetsDat.h:27
IDataItem.h
compareJSON.const
string const
Definition:
compareJSON.py:14
MonPedestalOffsetsDat::getDACG1
int getDACG1() const
Definition:
MonPedestalOffsetsDat.h:22
MonPedestalOffsetsDat::writeArrayDB
void writeArrayDB(const std::map< EcalLogicID, MonPedestalOffsetsDat > *data, MonRunIOV *iov)
Definition:
MonPedestalOffsetsDat.cc:124
MonPedestalOffsetsDat::prepareWrite
void prepareWrite()
Definition:
MonPedestalOffsetsDat.cc:33
MonPedestalOffsetsDat::setDACG6
void setDACG6(int dac)
Definition:
MonPedestalOffsetsDat.h:24
AlCaHLTBitMon_QueryRunRegistry.data
tuple data
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:288
mps_update.status
tuple status
Definition:
mps_update.py:57
CommPDSkim_cfg.throw
tuple throw
Definition:
CommPDSkim_cfg.py:101
Generated for CMSSW Reference Manual by
1.8.5