Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
OnlineDB
EcalCondDB
interface
CaliGeneralDat.h
Go to the documentation of this file.
1
#ifndef CALIGENERALDAT_H
2
#define CALIGENERALDAT_H
3
4
#include <map>
5
#include <stdexcept>
6
7
#include "
OnlineDB/EcalCondDB/interface/IDataItem.h
"
8
#include "
OnlineDB/EcalCondDB/interface/CaliTag.h
"
9
#include "
OnlineDB/EcalCondDB/interface/CaliIOV.h
"
10
#include "
OnlineDB/EcalCondDB/interface/EcalLogicID.h
"
11
12
class
CaliGeneralDat
:
public
IDataItem
{
13
public
:
14
friend
class
EcalCondDBInterface
;
15
CaliGeneralDat
();
16
~CaliGeneralDat
();
17
18
// User data methods
19
inline
std::string
getTable
() {
return
"CALI_GENERAL_DAT"
; }
20
21
inline
void
setNumEvents
(
int
n
) {
m_numEvents
=
n
; }
22
inline
int
getNumEvents
()
const
{
return
m_numEvents
; }
23
24
inline
void
setComments
(std::string
comments
) {
m_comments
=
comments
; }
25
inline
std::string
getComments
()
const
{
return
m_comments
; }
26
27
private
:
28
void
prepareWrite
()
29
throw
(std::runtime_error);
30
31
void
writeDB
(
const
EcalLogicID
* ecid,
const
CaliGeneralDat
* item,
CaliIOV
*
iov
)
32
throw
(std::runtime_error);
33
34
void
fetchData
(std::
map
<
EcalLogicID
,
CaliGeneralDat
>* fillVec,
CaliIOV
*
iov
)
35
throw
(std::runtime_error);
36
37
// User data
38
int
m_numEvents
;
39
std::
string
m_comments
;
40
41
};
42
43
#endif
CaliGeneralDat::getComments
std::string getComments() const
Definition:
CaliGeneralDat.h:25
CaliGeneralDat::m_comments
std::string m_comments
Definition:
CaliGeneralDat.h:39
CaliGeneralDat::m_numEvents
int m_numEvents
Definition:
CaliGeneralDat.h:38
EcalCondDBInterface
Definition:
EcalCondDBInterface.h:39
EcalLogicID
Definition:
EcalLogicID.h:8
CaliIOV
Definition:
CaliIOV.h:13
CaliGeneralDat::getTable
std::string getTable()
Definition:
CaliGeneralDat.h:19
CaliTag.h
Association.map
dictionary map
Definition:
Association.py:196
CaliGeneralDat::setComments
void setComments(std::string comments)
Definition:
CaliGeneralDat.h:24
indexGen.comments
comments
Definition:
indexGen.py:74
IDataItem
Definition:
IDataItem.h:16
o2o.iov
tuple iov
Definition:
o2o.py:307
CaliGeneralDat::writeDB
void writeDB(const EcalLogicID *ecid, const CaliGeneralDat *item, CaliIOV *iov)
Definition:
CaliGeneralDat.cc:48
CaliGeneralDat
Definition:
CaliGeneralDat.h:12
EcalLogicID.h
CaliGeneralDat::getNumEvents
int getNumEvents() const
Definition:
CaliGeneralDat.h:22
CaliGeneralDat::CaliGeneralDat
CaliGeneralDat()
Definition:
CaliGeneralDat.cc:12
CaliGeneralDat::setNumEvents
void setNumEvents(int n)
Definition:
CaliGeneralDat.h:21
n
int n
Definition:
DTDataIntegrityTask.cc:33
IDataItem.h
compareJSON.const
string const
Definition:
compareJSON.py:14
CaliGeneralDat::fetchData
void fetchData(std::map< EcalLogicID, CaliGeneralDat > *fillVec, CaliIOV *iov)
Definition:
CaliGeneralDat.cc:75
CaliGeneralDat::prepareWrite
void prepareWrite()
Definition:
CaliGeneralDat.cc:30
CaliIOV.h
CaliGeneralDat::~CaliGeneralDat
~CaliGeneralDat()
Definition:
CaliGeneralDat.cc:24
CommPDSkim_cfg.throw
tuple throw
Definition:
CommPDSkim_cfg.py:101
Generated for CMSSW Reference Manual by
1.8.5