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