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