test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
OnlineDB
EcalCondDB
interface
RunCommentDat.h
Go to the documentation of this file.
1
#ifndef RUNCOMMENTDAT_H
2
#define RUNCOMMENTDAT_H
3
4
#include <vector>
5
#include <stdexcept>
6
7
#include "
OnlineDB/EcalCondDB/interface/IDataItem.h
"
8
#include "
OnlineDB/EcalCondDB/interface/RunIOV.h
"
9
#include "
OnlineDB/EcalCondDB/interface/EcalLogicID.h
"
10
11
class
RunCommentDat
:
public
IDataItem
{
12
public
:
13
friend
class
EcalCondDBInterface
;
14
RunCommentDat
();
15
~RunCommentDat
();
16
17
// User data methods
18
inline
std::string
getTable
() {
return
"RUN_COMMENT_DAT"
; }
19
20
inline
void
setSource
(
std::string
x
) {
m_source
=
x
; }
21
inline
std::string
getSource
()
const
{
return
m_source
; }
22
inline
void
setComment
(
std::string
x
) {
m_comment
=
x
; }
23
inline
std::string
getComment
()
const
{
return
m_comment
; }
24
inline
void
setDBTime
(
const
Tm
&
x
) {
m_time
=
x
;}
25
inline
Tm
getDBTime
()
const
{
return
m_time
;}
26
27
private
:
28
void
prepareWrite
()
29
throw
(std::runtime_error);
30
31
void
writeDB
(
const
EcalLogicID
* ecid,
const
RunCommentDat
* item,
RunIOV
*
iov
)
32
throw
(std::runtime_error);
33
34
void
fetchData
(std::map<
EcalLogicID
,
RunCommentDat
>* fillMap,
RunIOV
*
iov
)
35
throw
(std::runtime_error);
36
37
// User data
38
std::
string
m_source
;
39
std::
string
m_comment
;
40
Tm
m_time
;
41
};
42
43
#endif
EcalCondDBInterface
Definition:
EcalCondDBInterface.h:38
RunCommentDat::writeDB
void writeDB(const EcalLogicID *ecid, const RunCommentDat *item, RunIOV *iov)
Definition:
RunCommentDat.cc:52
RunCommentDat::getComment
std::string getComment() const
Definition:
RunCommentDat.h:23
RunCommentDat::getDBTime
Tm getDBTime() const
Definition:
RunCommentDat.h:25
EcalLogicID
Definition:
EcalLogicID.h:7
RunCommentDat::setSource
void setSource(std::string x)
Definition:
RunCommentDat.h:20
RunCommentDat::fetchData
void fetchData(std::map< EcalLogicID, RunCommentDat > *fillMap, RunIOV *iov)
Definition:
RunCommentDat.cc:74
RunCommentDat::m_source
std::string m_source
Definition:
RunCommentDat.h:38
RunCommentDat
Definition:
RunCommentDat.h:11
RunCommentDat::~RunCommentDat
~RunCommentDat()
Definition:
RunCommentDat.cc:28
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
RunCommentDat::m_comment
std::string m_comment
Definition:
RunCommentDat.h:39
RunIOV.h
IDataItem
Definition:
IDataItem.h:16
RunCommentDat::prepareWrite
void prepareWrite()
Definition:
RunCommentDat.cc:34
o2o.iov
tuple iov
Definition:
o2o.py:307
RunCommentDat::m_time
Tm m_time
Definition:
RunCommentDat.h:40
EcalLogicID.h
RunCommentDat::getSource
std::string getSource() const
Definition:
RunCommentDat.h:21
RunCommentDat::setDBTime
void setDBTime(const Tm &x)
Definition:
RunCommentDat.h:24
IDataItem.h
compareJSON.const
string const
Definition:
compareJSON.py:14
RunCommentDat::getTable
std::string getTable()
Definition:
RunCommentDat.h:18
RunCommentDat::RunCommentDat
RunCommentDat()
Definition:
RunCommentDat.cc:16
RunIOV
Definition:
RunIOV.h:13
DDAxes::x
RunCommentDat::setComment
void setComment(std::string x)
Definition:
RunCommentDat.h:22
Tm
Definition:
Tm.h:13
CommPDSkim_cfg.throw
tuple throw
Definition:
CommPDSkim_cfg.py:101
Generated for CMSSW Reference Manual by
1.8.5