Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
OnlineDB
EcalCondDB
interface
ODCCSCycle.h
Go to the documentation of this file.
1
#ifndef ODCCSCYCLE_H
2
#define ODCCSCYCLE_H
3
4
#include <stdexcept>
5
#include <iostream>
6
7
#include "
OnlineDB/EcalCondDB/interface/IODConfig.h
"
8
9
10
11
class
ODCCSCycle
:
public
IODConfig
{
12
public
:
13
friend
class
EcalCondDBInterface
;
14
friend
class
ODEcalCycle
;
15
16
ODCCSCycle
();
17
~ODCCSCycle
();
18
19
inline
std::string
getTable
() {
return
"ECAL_CCS_CYCLE"
; }
20
21
inline
void
setId
(
int
id
){
m_ID
=id;}
22
inline
int
getId
()
const
{
return
m_ID
;} ;
23
24
// Methods for user data
25
inline
void
setCCSConfigurationID
(
int
x
){
m_ccs_config_id
=
x
;}
26
inline
int
getCCSConfigurationID
()
const
{
return
m_ccs_config_id
;}
27
28
// Operators
29
inline
bool
operator==
(
const
ODCCSCycle
&
m
)
const
{
return
(
m_ID
== m.
m_ID
); }
30
inline
bool
operator!=
(
const
ODCCSCycle
&
m
)
const
{
return
!(*
this
==
m
); }
31
32
33
34
private
:
35
// User data
36
int
m_ID
;
37
int
m_ccs_config_id
;
38
void
writeDB
()
throw
(std::runtime_error);
39
void
prepareWrite
()
throw
(std::runtime_error);
40
void
clear
();
41
void
fetchData
(
ODCCSCycle
*
result
)
throw
(std::runtime_error);
42
43
void
insertConfig
()
throw
(std::runtime_error);
44
45
// Methods from IUniqueDBObject
46
int
fetchID
()
throw
(std::runtime_error);
47
void
setByID
(
int
id
)
throw
(std::runtime_error);
48
49
50
};
51
52
#endif
ODCCSCycle::setByID
void setByID(int id)
Definition:
ODCCSCycle.cc:104
EcalCondDBInterface
Definition:
EcalCondDBInterface.h:38
ODCCSCycle::writeDB
void writeDB()
Definition:
ODCCSCycle.cc:41
ODCCSCycle::m_ID
int m_ID
Definition:
ODCCSCycle.h:36
ODCCSCycle::m_ccs_config_id
int m_ccs_config_id
Definition:
ODCCSCycle.h:37
ODCCSCycle
Definition:
ODCCSCycle.h:11
ODCCSCycle::setId
void setId(int id)
Definition:
ODCCSCycle.h:21
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
ODCCSCycle::clear
void clear()
Definition:
ODCCSCycle.cc:66
ODCCSCycle::getTable
std::string getTable()
Definition:
ODCCSCycle.h:19
ODCCSCycle::~ODCCSCycle
~ODCCSCycle()
Definition:
ODCCSCycle.cc:21
ODCCSCycle::operator==
bool operator==(const ODCCSCycle &m) const
Definition:
ODCCSCycle.h:29
ODCCSCycle::fetchData
void fetchData(ODCCSCycle *result)
Definition:
ODCCSCycle.cc:131
IODConfig
Definition:
IODConfig.h:19
ODCCSCycle::ODCCSCycle
ODCCSCycle()
Definition:
ODCCSCycle.cc:9
query.result
tuple result
Definition:
query.py:137
ODCCSCycle::operator!=
bool operator!=(const ODCCSCycle &m) const
Definition:
ODCCSCycle.h:30
m
int m
Definition:
DTDataIntegrityTask.cc:31
ODCCSCycle::insertConfig
void insertConfig()
Definition:
ODCCSCycle.cc:158
ODCCSCycle::getCCSConfigurationID
int getCCSConfigurationID() const
Definition:
ODCCSCycle.h:26
ODCCSCycle::prepareWrite
void prepareWrite()
Definition:
ODCCSCycle.cc:26
ODCCSCycle::setCCSConfigurationID
void setCCSConfigurationID(int x)
Definition:
ODCCSCycle.h:25
IODConfig.h
x
Definition:
DDAxes.h:10
ODEcalCycle
Definition:
ODEcalCycle.h:9
ODCCSCycle::fetchID
int fetchID()
Definition:
ODCCSCycle.cc:71
ODCCSCycle::getId
int getId() const
Definition:
ODCCSCycle.h:22
CommPDSkim_cfg.throw
tuple throw
Definition:
CommPDSkim_cfg.py:101
Generated for CMSSW Reference Manual by
1.8.5