Main Page
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
d
e
f
l
m
o
p
s
t
u
v
Related Functions
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Package Documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
CondFormats
Common
interface
ConfObject.h
Go to the documentation of this file.
1
#ifndef ConfObject_h
2
#define ConfObject_h
3
4
#include "
CondFormats/Serialization/interface/Serializable.h
"
5
6
#include <iostream>
7
#include <vector>
8
#include <map>
9
#include <algorithm>
10
#include <iterator>
11
#include <sstream>
12
13
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
14
29
class
ConfObject
{
30
public
:
31
ConfObject
() {}
32
33
template
<
class
valueType>
34
bool
put
(
const
std::string
&
name
,
const
valueType& inputValue) {
35
std::stringstream
ss
;
36
ss
<< inputValue;
37
if
(
parameters
.insert(std::make_pair(
name
,
ss
.str())).second)
38
return
true
;
39
return
false
;
40
}
41
42
template
<
class
valueType>
43
valueType
get
(
const
std::string
&
name
)
const
{
44
valueType returnValue;
45
parMap::const_iterator it =
parameters
.find(
name
);
46
std::stringstream
ss
;
47
if
(it !=
parameters
.end()) {
48
ss
<< it->second;
49
ss
>> returnValue;
50
}
else
{
51
std::cout
<<
"WARNING: parameter "
<<
name
<<
" not found. Returning default value"
<< std::endl;
52
}
53
return
returnValue;
54
}
55
56
bool
isParameter
(
const
std::string
&
name
)
const
{
return
(
parameters
.find(
name
) !=
parameters
.end()); }
57
59
void
printSummary
(std::stringstream&
ss
)
const
;
61
void
printDebug
(std::stringstream&
ss
)
const
;
62
63
typedef
std::map<std::string, std::string>
parMap
;
64
65
parMap
parameters
;
66
67
COND_SERIALIZABLE
;
68
};
69
70
#endif
ConfObject::ConfObject
ConfObject()
Definition:
ConfObject.h:31
MessageLogger.h
ConfObject::printDebug
void printDebug(std::stringstream &ss) const
Prints the full list of parameters.
Definition:
ConfObject.cc:10
gather_cfg.cout
cout
Definition:
gather_cfg.py:144
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition:
Serializable.h:39
ConfObject::parMap
std::map< std::string, std::string > parMap
Definition:
ConfObject.h:63
contentValuesCheck.ss
ss
Definition:
contentValuesCheck.py:33
ConfObject::isParameter
bool isParameter(const std::string &name) const
Definition:
ConfObject.h:56
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
ConfObject::printSummary
void printSummary(std::stringstream &ss) const
Prints the full list of parameters.
Definition:
ConfObject.cc:3
Serializable.h
ConfObject
Definition:
ConfObject.h:29
ConfObject::get
valueType get(const std::string &name) const
Definition:
ConfObject.h:43
ConfObject::put
bool put(const std::string &name, const valueType &inputValue)
Definition:
ConfObject.h:34
Skims_PA_cff.name
name
Definition:
Skims_PA_cff.py:17
ConfObject::parameters
parMap parameters
Definition:
ConfObject.h:65
Generated for CMSSW Reference Manual by
1.8.16