Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
();
16
17
// User data methods
18
inline
std::string
getTable
() {
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
45
private
:
46
void
prepareWrite
()
47
throw
(std::runtime_error);
48
49
void
writeDB
(
const
ODPedestalOffsetsDat
* item,
ODFEPedestalOffsetInfo
*
iov
)
50
throw
(std::runtime_error);
51
52
void
writeArrayDB
(
const
std::vector<
ODPedestalOffsetsDat
>&
data
,
ODFEPedestalOffsetInfo
*
iov
)
53
throw
(std::runtime_error);
54
55
56
void
fetchData
(std::vector<
ODPedestalOffsetsDat
>* fillMap,
ODFEPedestalOffsetInfo
*
iov
)
57
throw
(std::runtime_error);
58
59
// User data
60
int
m_sm
;
61
int
m_fed
;
62
int
m_tt
;
63
int
m_xt
;
64
int
m_low
;
65
int
m_mid
;
66
int
m_high
;
67
int
m_ID
;
68
69
};
70
71
#endif
ODPedestalOffsetsDat::getTable
std::string getTable()
Definition:
ODPedestalOffsetsDat.h:18
EcalCondDBInterface
Definition:
EcalCondDBInterface.h:38
ODPedestalOffsetsDat::m_tt
int m_tt
Definition:
ODPedestalOffsetsDat.h:62
ODPedestalOffsetsDat::getSMId
int getSMId() const
Definition:
ODPedestalOffsetsDat.h:24
ODFEPedestalOffsetInfo.h
ODPedestalOffsetsDat::prepareWrite
void prepareWrite()
Definition:
ODPedestalOffsetsDat.cc:34
ODFEPedestalOffsetInfo
Definition:
ODFEPedestalOffsetInfo.h:9
ODPedestalOffsetsDat::m_fed
int m_fed
Definition:
ODPedestalOffsetsDat.h:61
ODPedestalOffsetsDat::ODPedestalOffsetsDat
ODPedestalOffsetsDat()
Definition:
ODPedestalOffsetsDat.cc:10
ODPedestalOffsetsDat::getHigh
int getHigh() const
Definition:
ODPedestalOffsetsDat.h:42
ODPedestalOffsetsDat::getLow
int getLow() const
Definition:
ODPedestalOffsetsDat.h:36
ODPedestalOffsetsDat::setTTId
void setTTId(int dac)
Definition:
ODPedestalOffsetsDat.h:29
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
ODPedestalOffsetsDat::m_sm
int m_sm
Definition:
ODPedestalOffsetsDat.h:60
o2o.iov
tuple iov
Definition:
o2o.py:307
ODPedestalOffsetsDat::writeArrayDB
void writeArrayDB(const std::vector< ODPedestalOffsetsDat > &data, ODFEPedestalOffsetInfo *iov)
Definition:
ODPedestalOffsetsDat.cc:114
IODConfig
Definition:
IODConfig.h:19
ODPedestalOffsetsDat::getCrystalId
int getCrystalId() const
Definition:
ODPedestalOffsetsDat.h:33
ODPedestalOffsetsDat::getId
int getId() const
Definition:
ODPedestalOffsetsDat.h:21
ODPedestalOffsetsDat::getFedId
int getFedId() const
Definition:
ODPedestalOffsetsDat.h:27
ODPedestalOffsetsDat::m_xt
int m_xt
Definition:
ODPedestalOffsetsDat.h:63
EcalLogicID.h
ODPedestalOffsetsDat::fetchData
void fetchData(std::vector< ODPedestalOffsetsDat > *fillMap, ODFEPedestalOffsetInfo *iov)
Definition:
ODPedestalOffsetsDat.cc:73
ODPedestalOffsetsDat::setId
void setId(int dac)
Definition:
ODPedestalOffsetsDat.h:20
ODPedestalOffsetsDat::setFedId
void setFedId(int dac)
Definition:
ODPedestalOffsetsDat.h:26
ODPedestalOffsetsDat::setHigh
void setHigh(int dac)
Definition:
ODPedestalOffsetsDat.h:41
ODPedestalOffsetsDat::m_high
int m_high
Definition:
ODPedestalOffsetsDat.h:66
ODPedestalOffsetsDat::getMid
int getMid() const
Definition:
ODPedestalOffsetsDat.h:39
ODPedestalOffsetsDat::~ODPedestalOffsetsDat
~ODPedestalOffsetsDat()
Definition:
ODPedestalOffsetsDat.cc:28
ODPedestalOffsetsDat::setCrystalId
void setCrystalId(int dac)
Definition:
ODPedestalOffsetsDat.h:32
ODPedestalOffsetsDat
Definition:
ODPedestalOffsetsDat.h:11
ODPedestalOffsetsDat::setLow
void setLow(int dac)
Definition:
ODPedestalOffsetsDat.h:35
IDataItem.h
compareJSON.const
string const
Definition:
compareJSON.py:14
ODPedestalOffsetsDat::getTTId
int getTTId() const
Definition:
ODPedestalOffsetsDat.h:30
ODPedestalOffsetsDat::setMid
void setMid(int dac)
Definition:
ODPedestalOffsetsDat.h:38
ODPedestalOffsetsDat::m_mid
int m_mid
Definition:
ODPedestalOffsetsDat.h:65
ODPedestalOffsetsDat::setSMId
void setSMId(int dac)
Definition:
ODPedestalOffsetsDat.h:23
ODPedestalOffsetsDat::m_ID
int m_ID
Definition:
ODPedestalOffsetsDat.h:67
AlCaHLTBitMon_QueryRunRegistry.data
tuple data
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:288
ODPedestalOffsetsDat::m_low
int m_low
Definition:
ODPedestalOffsetsDat.h:64
CommPDSkim_cfg.throw
tuple throw
Definition:
CommPDSkim_cfg.py:101
ODPedestalOffsetsDat::writeDB
void writeDB(const ODPedestalOffsetsDat *item, ODFEPedestalOffsetInfo *iov)
Definition:
ODPedestalOffsetsDat.cc:50
Generated for CMSSW Reference Manual by
1.8.5