Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
OnlineDB
EcalCondDB
interface
ODScanConfig.h
Go to the documentation of this file.
1
#ifndef ODSCANCONFIG_H
2
#define ODSCANCONFIG_H
3
4
#include <map>
5
#include <stdexcept>
6
7
#include "
OnlineDB/EcalCondDB/interface/IODConfig.h
"
8
9
class
ODScanConfig
:
public
IODConfig
{
10
public
:
11
friend
class
EcalCondDBInterface
;
12
ODScanConfig
();
13
~ODScanConfig
();
14
15
// User data methods
16
inline
std::string
getTable
() {
return
"ECAL_Scan_DAT"
; }
17
18
inline
void
setId
(
int
id
) {
m_ID
= id; }
19
inline
int
getId
()
const
{
return
m_ID
; }
20
21
inline
void
setTypeId
(
int
x
) {
m_type_id
=
x
; }
22
inline
int
getTypeId
()
const
{
return
m_type_id
; }
23
24
inline
void
setScanType
(
std::string
x
) {
m_type
=
x
; }
25
inline
std::string
getScanType
()
const
{
return
m_type
; }
26
27
inline
void
setFromVal
(
int
x
) {
m_from_val
=
x
; }
28
inline
int
getFromVal
()
const
{
return
m_from_val
; }
29
30
inline
void
setToVal
(
int
x
) {
m_to_val
=
x
; }
31
inline
int
getToVal
()
const
{
return
m_to_val
; }
32
33
inline
void
setStep
(
int
x
) {
m_step
=
x
; }
34
inline
int
getStep
()
const
{
return
m_step
; }
35
void
setParameters
(
const
std::map<std::string,std::string>& my_keys_map);
36
37
private
:
38
void
prepareWrite
()
throw
(std::runtime_error);
39
void
writeDB
()
throw
(std::runtime_error);
40
void
clear
();
41
void
fetchData
(
ODScanConfig
*
result
)
throw
(std::runtime_error);
42
int
fetchID
()
throw
(std::runtime_error);
43
int
fetchNextId
()
throw
(std::runtime_error);
44
45
46
// User data
47
int
m_ID
;
48
49
int
m_type_id
;
50
std::
string
m_type
;
51
int
m_from_val
;
52
int
m_to_val
;
53
int
m_step
;
54
55
};
56
57
#endif
ODScanConfig::m_type
std::string m_type
Definition:
ODScanConfig.h:50
ODScanConfig::m_type_id
int m_type_id
Definition:
ODScanConfig.h:49
ODScanConfig::fetchID
int fetchID()
Definition:
ODScanConfig.cc:166
EcalCondDBInterface
Definition:
EcalCondDBInterface.h:38
ODScanConfig::prepareWrite
void prepareWrite()
Definition:
ODScanConfig.cc:79
ODScanConfig::setToVal
void setToVal(int x)
Definition:
ODScanConfig.h:30
ODScanConfig::ODScanConfig
ODScanConfig()
Definition:
ODScanConfig.cc:11
ODScanConfig::fetchData
void fetchData(ODScanConfig *result)
Definition:
ODScanConfig.cc:131
ODScanConfig::setId
void setId(int id)
Definition:
ODScanConfig.h:18
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
ODScanConfig::getId
int getId() const
Definition:
ODScanConfig.h:19
ODScanConfig::setScanType
void setScanType(std::string x)
Definition:
ODScanConfig.h:24
ODScanConfig::setParameters
void setParameters(const std::map< std::string, std::string > &my_keys_map)
Definition:
ODScanConfig.cc:60
IODConfig
Definition:
IODConfig.h:19
query.result
tuple result
Definition:
query.py:137
ODScanConfig::getStep
int getStep() const
Definition:
ODScanConfig.h:34
ODScanConfig::setFromVal
void setFromVal(int x)
Definition:
ODScanConfig.h:27
ODScanConfig::m_from_val
int m_from_val
Definition:
ODScanConfig.h:51
ODScanConfig::m_step
int m_step
Definition:
ODScanConfig.h:53
ODScanConfig::clear
void clear()
Definition:
ODScanConfig.cc:28
ODScanConfig::getTable
std::string getTable()
Definition:
ODScanConfig.h:16
ODScanConfig::getToVal
int getToVal() const
Definition:
ODScanConfig.h:31
ODScanConfig::fetchNextId
int fetchNextId()
Definition:
ODScanConfig.cc:38
ODScanConfig::~ODScanConfig
~ODScanConfig()
Definition:
ODScanConfig.cc:24
ODScanConfig::getFromVal
int getFromVal() const
Definition:
ODScanConfig.h:28
ODScanConfig::m_ID
int m_ID
Definition:
ODScanConfig.h:47
ODScanConfig::writeDB
void writeDB()
Definition:
ODScanConfig.cc:98
ODScanConfig::setTypeId
void setTypeId(int x)
Definition:
ODScanConfig.h:21
IODConfig.h
ODScanConfig::m_to_val
int m_to_val
Definition:
ODScanConfig.h:52
ODScanConfig
Definition:
ODScanConfig.h:9
x
Definition:
DDAxes.h:10
ODScanConfig::getScanType
std::string getScanType() const
Definition:
ODScanConfig.h:25
ODScanConfig::getTypeId
int getTypeId() const
Definition:
ODScanConfig.h:22
ODScanConfig::setStep
void setStep(int x)
Definition:
ODScanConfig.h:33
CommPDSkim_cfg.throw
tuple throw
Definition:
CommPDSkim_cfg.py:101
Generated for CMSSW Reference Manual by
1.8.5