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